From: Michael Tremer Date: Sun, 24 May 2009 15:35:55 +0000 (+0200) Subject: network: Simplified initscript. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ff759a9f1a0c0fc58b2312fe46ec57daa3bdee87;p=ipfire-3.x.git network: Simplified initscript. --- diff --git a/src/initscripts/extras/network b/src/initscripts/extras/network index 19c3ff08c..94dfb25b0 100644 --- a/src/initscripts/extras/network +++ b/src/initscripts/extras/network @@ -17,37 +17,10 @@ ### END INIT INFO . /lib/lsb/init-functions -. /etc/init.d/networking/functions case "${1}" in - start) - # Start all network interfaces - for zone in $(find ${CONFIG_ZONES}/* -maxdepth 1 2>/dev/null); do - [ -d "${zone}" ] || continue - /etc/init.d/networking/zone ${zone##*/} up - done - touch /var/lock/subsys/network - ;; - - stop) - # Stop all network interfaces - for zone in $(find ${CONFIG_ZONES}/* -maxdepth 1 2>/dev/null); do - [ -d "${zone}" ] || continue - /etc/init.d/networking/zone ${zone##*/} down - done - rm -f /var/lock/subsys/network - ;; - - restart) - ${0} stop - sleep 1 - ${0} start - ;; - - reload) - if [ -e /var/lock/subsys/network ]; then - : # TODO - fi + start|stop|reload|restart) + exec /sbin/network $@ ;; *)