From 7da45feaa8f70f28fc1278f22bcd07956517964d Mon Sep 17 00:00:00 2001 From: "Michael K. Johnson" Date: Sat, 2 May 1998 19:53:26 +0000 Subject: probe function, more hinting --- rc.d/init.d/network | 27 ++++++++++++++++++++++----- 1 file changed, 22 insertions(+), 5 deletions(-) (limited to 'rc.d/init.d/network') diff --git a/rc.d/init.d/network b/rc.d/init.d/network index 8127cd0a..30dea69a 100755 --- a/rc.d/init.d/network +++ b/rc.d/init.d/network @@ -5,6 +5,7 @@ # chkconfig: 345 10 97 # description: Activates/Deactivates all network interfaces configured to \ # start at boot time. +# probe: true # Source function library. . /etc/rc.d/init.d/functions @@ -100,21 +101,37 @@ case "$1" in if [ -x /bin/linuxconf ] ; then eval `/bin/linuxconf --hint netdev` for device in $DEV_UP ; do - ./ifup $device boot + ./ifup $device done for device in $DEV_DOWN ; do - ./ifdown $device boot + ./ifdown $device done for device in $DEV_RECONF ; do - ./ifdown $device boot - ./ifup $device boot + ./ifdown $device + ./ifup $device + done + for device in $DEV_RECONF_ALIASES ; do + /etc/sysconfig/network-scripts/ifup-aliases $device + done + for device in $DEV_RECONF_ROUTES ; do + /etc/sysconfig/network-scripts/ifup-routes $device done else $0 restart fi ;; + probe) + if [ -x /bin/linuxconf ] ; then + eval `/bin/linuxconf --hint netdev` + [ -n "$DEV_UP$DEV_DOWN$DEV_RECONF$DEV_RECONF_ALIASES$DEV_RECONF_ROUTES" ] && \ + echo reload + exit 0 + else + exit 0 + fi + ;; *) - echo "Usage: network {start|stop|restart|reload|status}" + echo "Usage: network {start|stop|restart|reload|status|probe}" exit 1 esac -- cgit v1.2.1