Revision f190f1a0
Added by David Wood almost 10 years ago
usr/local/sbin/ppp-linkdown | ||
---|---|---|
11 | 11 |
|
12 | 12 |
/etc/rc.kill_states ${IF} ${LOCAL_IP} |
13 | 13 |
|
14 |
if [ -s "/tmp/${IF}_defaultgw" ]; then |
|
14 |
if [ "${PROTOCOL}" == "inet" && -s "/tmp/${IF}_defaultgw" ]; then
|
|
15 | 15 |
GW=`head -n 1 /tmp/${IF}_defaultgw` |
16 | 16 |
[ -n "${GW}" ] \ |
17 | 17 |
&& /sbin/route delete default ${GW} |
Also available in: Unified diff
Make code dealing with the IPv4 default gateway conditional on the IPv4 link going down