Re: How to run a script when disconnecting a dialup connection
>-"Chris R. Martin" <bluerider@bigfoot.com>
>
> I know that ip-up and ip-down are run by pppd when the link is brought up
> or down respectively. However, ip-down is run AFTER the link is brought
> down. What I'd like to do is run a script or two BEFORE the link actually
> goes down.
Make a script that does what you want, and then takes down the links.
Example:
#!/bin/sh
script1
script2
poff # (or whatever way you use [killall pppd])
--
The only way tcsh "rocks" is when the rocks are attached to its feet
in the deepest part of a very deep lake. (Linus Torvalds)
olet@ifi.uio.no [-: .elOle. :-] olet@debian.org
Reply to: