Commit 843a96a3 authored by Darren 'Tadgy' Austin's avatar Darren 'Tadgy' Austin

Move where we set PROMISCIOUS mode to the end of the interface configuration block.

parent a364b7ec
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment