I keep a default route set for eth0 to another local computer. When someone
runs 'ifup ppp0' it destroys that route and replaces it with the route to my
isp. That's fine, except that I want to put the other route back when 'ifdown
ppp0' is run. So I created /etc/ppp/ip-down.local and made it executable.
However, it won't set the route! Can anyone tell me what I'm doing wrong.
Here's my /etc/ppp/ip-down file:
Output of ls -l /etc/ppp/ip-down:
-rwxr-xr-x 1 root root 265 Sep 16 1997 /etc/ppp/ip-down
Output of ls -l /etc/ppp/ip-down.local:
-rwxr-xr-x 1 root root 52 Aug 25 21:49 /etc/ppp/ip-down.local
Output of cat /etc/ppp/ip-down:
#!/bin/bash
# This file should not be modified -- make local changes to
# /etc/ppp/ip-down.local instead
LOGDEVICE=$6
REALDEVICE=$1
[ -x /etc/ppp/ip-down.local ] && /etc/ppp/ip-down.local $*
/etc/sysconfig/network-scripts/ifdown-post ifcfg-${LOGDEVICE}
exit 0
Output of cat /etc/ppp/ip-down.local:
#!/bin/bash
route add default gw 192.168.1.40 eth0
Thanks,
Ben Logan
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list