382031c5c2
It also includes the following changes: * use the shorewall "restore" action (very quick) if available in the initscript's restart action * modify the 110-MODULESDIR.patch to include /lib/modules/$(uname -r) in the module search path * include an iface hotplug action to reload the ruleset on interface transitions Signed-off-by: Brian J. Murrell <brian@interlinx.bc.ca> git-svn-id: svn://svn.openwrt.org/openwrt/packages@18737 3c298f89-4303-0410-b956-a3cf2f4a3e73
13 lines
235 B
Bash
13 lines
235 B
Bash
#!/bin/sh
|
|
|
|
# should restart shorewall when an interface comes up
|
|
|
|
[ ifup = "$ACTION" ] && {
|
|
/etc/init.d/shorewall-lite restart
|
|
}
|
|
|
|
[ ifdown = "$ACTION" ] && {
|
|
# might need to restore some routing
|
|
/etc/init.d/shorewall-lite restart
|
|
}
|