diff options
Diffstat (limited to 'net/shorewall-lite/files/hotplug_iface')
-rw-r--r-- | net/shorewall-lite/files/hotplug_iface | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/net/shorewall-lite/files/hotplug_iface b/net/shorewall-lite/files/hotplug_iface index b8b79830a..90ed80c8c 100644 --- a/net/shorewall-lite/files/hotplug_iface +++ b/net/shorewall-lite/files/hotplug_iface @@ -1,12 +1,13 @@ #!/bin/sh -# should restart shorewall-lite when an interface comes up +# should restart shorewall when an interface comes up -[ ifup = "$ACTION" ] && { +case "$ACTION" in + ifup) /etc/init.d/shorewall-lite restart -} - -[ ifdown = "$ACTION" ] && { + ;; + ifdown) # might need to restore some routing /etc/init.d/shorewall-lite restart -} + ;; +esac
\ No newline at end of file |