aboutsummaryrefslogtreecommitdiff
path: root/net/shorewall-lite/files/hotplug_iface
blob: b8b79830afa0beb943397a72eaaba9ba6d73b663 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

# should restart shorewall-lite 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
}