From 633f47836273c3895f52659e7d3eefa38eb8fcda Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Wed, 29 Aug 2001 15:10:09 +0000 Subject: - fix ISDN dial on demand bug - fix typo bug in network-functions --- sysconfig/network-scripts/ifdown-post | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'sysconfig/network-scripts/ifdown-post') diff --git a/sysconfig/network-scripts/ifdown-post b/sysconfig/network-scripts/ifdown-post index db9d3f53..04d516d5 100755 --- a/sysconfig/network-scripts/ifdown-post +++ b/sysconfig/network-scripts/ifdown-post @@ -24,7 +24,16 @@ fi # Reset the default route if this interface had a special one if ! check_default_route ; then - add_default_route ${DEVICE} + # ISDN device needs special handling dial on demand + if [ "${DEVICETYPE}" = "ippp" -o "${DEVICETYPE}" = "isdn" ] && [ "$DIALMODE" = "auto" ] ; then + if [ -z "$GATEWAY" ] ; then + /sbin/ip route add default dev ${DEVICE} + else + /sbin/ip route add default via ${GATEWAY} + fi + else + add_default_route ${DEVICE} + fi fi # Notify programs that have requested notification -- cgit