From f2ea7ca51443f2fec41a6a3cbcf468fa84be2a90 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Tue, 3 Jun 2008 11:51:36 +0000 Subject: Let ifdown control all interfaces. --- doc/net.example.Linux.in | 2 +- 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 136072f..28a2fb9 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 cce62e5..4dadee9 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 -- cgit v1.2.3