diff options
-rw-r--r-- | rc.inet1 | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -416,6 +416,7 @@ if_down() { fi # Take down VLAN interface, if configured. if echo "${1}" | grep -Fq .; then + echo "/etc/rc.d/rc.inet1: /sbin/ip link delete ${1}" | $LOGGER /sbin/ip link delete ${1} fi # Kill wireless daemons if any: @@ -476,8 +477,8 @@ start() { # Function to stop the network: stop() { gateway_down - for i in "${IFNAME[@]}" ; do - if_down $i + for (( i = $MAXNICS; i >= 0; i-- )); do + if_down ${IFNAME[$i]} done virtif_destroy lo_down |