On 22 Jul 2002 15:41:34 +0200 Ronny Aasen wrote:
> hi
>
> how can i make a bering rc3 with isdn.lrp run a script/command
> after dial up?
>
> the script would run "ipsec setup restart" in order to make ipsec aware
> of the new default gw.
I'm not sure it would be the best solutions, but you might be
able to use the "up" option in /etc/network/interfaces. From
"man interfaces" on a debian box:
IFACE OPTIONS
There are currently three standard options available for
all interfaces, regardless of address family or method. These
are:
up command
Run command after bringing the interface up. This
option can be given multiple times for a single
interface. If so, the commands will be executed in
order. If one of the commands fails, none of the
others will be executed, but the interface will
remain configured. (You can ensure a command never
fails by suffixing "|| true".)
[snip]
Here's an (untested) ppp example:
iface ppp0 inet ppp
provider myprovider
up sleep 2 && ipsec setup restart
> this is also interesting for modem connections/or xDSL connections with
> dhcp renewal daily.
I don't think the interface gets bounced for dhcp renewals, so the
approach I suggested probably would not help for renewals. dhclient
has built-in hooks for running commands at renewal though, IIRC. I
am not sure about pump offhand.
--Brad
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
------------------------------------------------------------------------
leaf-user mailing list: [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user
SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html