summaryrefslogtreecommitdiffstats
path: root/net/shorewall-lite/files/hotplug_iface
blob: acb995074d4385d25cf5f611142cadc7601a7e7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/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
}