aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/init.d/network
diff options
context:
space:
mode:
authorMichael K. Johnson <johnsonm@redhat.com>1998-05-02 19:53:26 +0000
committerMichael K. Johnson <johnsonm@redhat.com>1998-05-02 19:53:26 +0000
commit7da45feaa8f70f28fc1278f22bcd07956517964d (patch)
treed7b3efff950544e35b6cf549d835b5630ce1f36e /rc.d/init.d/network
parent637c0cee38481a8b23586677a9774b25779967b7 (diff)
downloadinitscripts-7da45feaa8f70f28fc1278f22bcd07956517964d.tar
initscripts-7da45feaa8f70f28fc1278f22bcd07956517964d.tar.gz
initscripts-7da45feaa8f70f28fc1278f22bcd07956517964d.tar.bz2
initscripts-7da45feaa8f70f28fc1278f22bcd07956517964d.tar.xz
initscripts-7da45feaa8f70f28fc1278f22bcd07956517964d.zip
probe function, more hinting
Diffstat (limited to 'rc.d/init.d/network')
-rwxr-xr-xrc.d/init.d/network27
1 files changed, 22 insertions, 5 deletions
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