diff options
Diffstat (limited to 'sysconfig/network-scripts/ifdown-post')
-rwxr-xr-x | sysconfig/network-scripts/ifdown-post | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/sysconfig/network-scripts/ifdown-post b/sysconfig/network-scripts/ifdown-post index 0a1b938a..98fe64cc 100755 --- a/sysconfig/network-scripts/ifdown-post +++ b/sysconfig/network-scripts/ifdown-post @@ -19,12 +19,9 @@ source_config /etc/sysconfig/network-scripts/ifdown-routes ${REALDEVICE} ${DEVNAME} if [ "$PEERDNS" != "no" -o -n "$RESOLV_MODS" -a "$RESOLV_MODS" != "no" ]; then - if [ -f /etc/resolv.conf.save ]; then - change_resolv_conf /etc/resolv.conf.save - rm -f /etc/resolv.conf.save - fi + clear_resolv_conf if [ "${DEVICETYPE}" = "ppp" -o "${DEVICETYPE}" = "ippp" ]; then - if [ -f /etc/ppp/peers/$DEVICE ] ; then + if [ -f /etc/ppp/peers/$DEVICE -a "$TYPE" != "ADSL" ] ; then rm -f /etc/ppp/peers/$DEVICE fi fi @@ -49,6 +46,12 @@ fi # Notify programs that have requested notification do_netreport +mdv-network-event interface_down ${DEVICE} + +if [ -d /etc/sysconfig/network-scripts/ifdown.d -a -x /usr/bin/run-parts ]; then + /usr/bin/run-parts --arg ${DEVICE} /etc/sysconfig/network-scripts/ifdown.d +fi + if [ -x /sbin/ifdown-local ]; then /sbin/ifdown-local ${DEVICE} fi |