Let ifdown control all interfaces.

This commit is contained in:
Roy Marples 2008-06-03 11:51:36 +00:00
parent b41c864fc3
commit f2ea7ca514
2 changed files with 2 additions and 2 deletions

View File

@ -1010,7 +1010,7 @@
#postdown() { #postdown() {
# # Enable Wake-On-LAN for every interface except for lo # # Enable Wake-On-LAN for every interface except for lo
# # Probably a good idea to set RC_DOWN_INTERFACE="no" in /etc/conf.d/rc # # Probably a good idea to set ifdown="no" in /etc/conf.d/net
# # as well ;) # # as well ;)
# [ "${IFACE}" != "lo" ] && ethtool -s "${IFACE}" wol g # [ "${IFACE}" != "lo" ] && ethtool -s "${IFACE}" wol g

View File

@ -668,7 +668,7 @@ stop()
if ! yesno ${IN_BACKGROUND} && \ if ! yesno ${IN_BACKGROUND} && \
[ "${IFACE}" != "lo" -a "${IFACE}" != "lo0" ]; then [ "${IFACE}" != "lo" -a "${IFACE}" != "lo0" ]; then
eval module=\$ifdown_${IFVAR} eval module=\$ifdown_${IFVAR}
module=${module:-YES} module=${module:-${ifdown:-YES}}
yesno ${module} && _down 2>/dev/null yesno ${module} && _down 2>/dev/null
fi fi