openwrt-packages/net/shorewall-lite/files/hotplug_iface

13 lines
263 B
Bash

#!/bin/sh
# should restart shorewall when an interface comes up
case "$ACTION" in
ifup)
/etc/init.d/shorewall-lite restart
;;
ifdown)
# might need to restore some routing
/etc/init.d/shorewall-lite restart
;;
esac