diff options
author | Roy Marples <roy@marples.name> | 2008-06-03 11:51:36 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2008-06-03 11:51:36 +0000 |
commit | f2ea7ca51443f2fec41a6a3cbcf468fa84be2a90 (patch) | |
tree | 09a291705a287d60d116fa66aacca68b117fdf9a | |
parent | b41c864fc34803cc9bd0e37395fa878f0a383547 (diff) |
Let ifdown control all interfaces.
-rw-r--r-- | doc/net.example.Linux.in | 2 | ||||
-rw-r--r-- | init.d/net.lo.in | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/doc/net.example.Linux.in b/doc/net.example.Linux.in index 136072f0..28a2fb98 100644 --- a/doc/net.example.Linux.in +++ b/doc/net.example.Linux.in @@ -1010,7 +1010,7 @@ #postdown() { # # 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 ;) # [ "${IFACE}" != "lo" ] && ethtool -s "${IFACE}" wol g diff --git a/init.d/net.lo.in b/init.d/net.lo.in index cce62e5a..4dadee91 100644 --- a/init.d/net.lo.in +++ b/init.d/net.lo.in @@ -668,7 +668,7 @@ stop() if ! yesno ${IN_BACKGROUND} && \ [ "${IFACE}" != "lo" -a "${IFACE}" != "lo0" ]; then eval module=\$ifdown_${IFVAR} - module=${module:-YES} + module=${module:-${ifdown:-YES}} yesno ${module} && _down 2>/dev/null fi |