]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
network: Simplified initscript.
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 24 May 2009 15:35:55 +0000 (17:35 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 24 May 2009 15:35:55 +0000 (17:35 +0200)
src/initscripts/extras/network

index 19c3ff08cf6344a0e90dcc54761e0153b80cfa4d..94dfb25b09368c36e904cc6eab8e93a7feae3766 100644 (file)
 ### 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 $@
                ;;
 
        *)