summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarren 'Tadgy' Austin <darren@afterdark.org.uk>2018-07-28 01:41:04 +0100
committerRobby Workman <rworkman@slackware.com>2018-11-25 19:07:23 -0600
commit051271becdf912c7fd96f6f8b0e71627cd4dd1a2 (patch)
treeb0cd52297ea34e48d15ba09eea27aaab1886e8b7
parent2fe66d0dc63826b6ec0eda7f2604f91ae42f53ed (diff)
downloadslacknetsetup-051271becdf912c7fd96f6f8b0e71627cd4dd1a2.tar.xz
Move set of PROMISCIOUS mode to end of interface config block
Signed-off-by: Robby Workman <rworkman@slackware.com>
-rw-r--r--rc.inet111
1 files changed, 3 insertions, 8 deletions
diff --git a/rc.inet1 b/rc.inet1
index 39eaf63..7d37608 100644
--- a/rc.inet1
+++ b/rc.inet1
@@ -211,10 +211,6 @@ if_up() {
num=$(($num + 1))
done
fi
- if [ "${PROMISCUOUS[$i]}" = "yes" ]; then
- # Set promiscuous mode on the interface
- /sbin/ip link set dev ${1} promisc on
- fi
fi
elif [ -n "${IPADDR[$i]}" ] || [ -n "${IPADDR6[$i]}" ]; then # use a fixed IP to bring interface up
# Disable v6 IP auto configuration.
@@ -237,10 +233,6 @@ if_up() {
num=$(($num + 1))
done
fi
- if [ "${PROMISCUOUS[$i]}" = "yes" ]; then
- # Set promiscuous mode on the interface
- /sbin/ip link set dev ${1} promisc on
- fi
else
debug_log "${1} interface is not configured in /etc/rc.d/rc.inet1.conf"
fi
@@ -265,6 +257,9 @@ if_up() {
echo "/etc/rc.d/rc.inet1: /sbin/ip link set dev ${1} mtu ${MTU[$i]}" | $LOGGER
/sbin/ip link set dev ${1} mtu ${MTU[$i]}
fi
+ if [ "${PROMISCUOUS[$i]}" = "yes" ]; then # Set promiscuous mode on the interface
+ /sbin/ip link set dev ${1} promisc on
+ fi
else
debug_log "${1} is already up, skipping"
fi