From: Michael Tremer Date: Wed, 31 Dec 2008 16:54:39 +0000 (+0100) Subject: Fixed network initscript that it will work if no bridge is there. X-Git-Tag: v3.0-alpha1~283^2~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1dead5842cc7beb454fe7113be9709ec75cd5852;p=ipfire-3.x.git Fixed network initscript that it will work if no bridge is there. --- diff --git a/src/initscripts/core/network b/src/initscripts/core/network index 6f944d4a3..5a8d62758 100644 --- a/src/initscripts/core/network +++ b/src/initscripts/core/network @@ -22,10 +22,13 @@ case "${1}" in start) # Start all network interfaces - for file in ${NETWORK_DEVICES}/* - do + for file in $(find ${NETWORK_DEVICES} -maxdepth 1); do interface=${file##*/} + if [ -d "${file}" ] || [ -n "${interface}" ]; then + continue + fi + IN_BOOT=1 ${NETWORK_SCRIPTS}/brup ${interface} done ;; @@ -33,8 +36,12 @@ case "${1}" in stop) # Reverse list FILES="" - for file in ${NETWORK_DEVICES}/* - do + for file in $(find ${NETWORK_DEVICES} -maxdepth 1); do + interface=${file##*/} + + if [ -d "${file}" ] || [ -n "${interface}" ]; then + continue + fi FILES="${file} ${FILES}" done