summaryrefslogtreecommitdiffstats
path: root/rc.inet1
diff options
context:
space:
mode:
Diffstat (limited to 'rc.inet1')
-rw-r--r--rc.inet15
1 files changed, 3 insertions, 2 deletions
diff --git a/rc.inet1 b/rc.inet1
index baeeddb..2b95bac 100644
--- a/rc.inet1
+++ b/rc.inet1
@@ -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