2006-12-08 18:36:31 +00:00
|
|
|
#!/bin/sh
|
2008-12-25 03:25:13 +00:00
|
|
|
|
2008-12-25 03:46:04 +00:00
|
|
|
/etc/init.d/miniupnpd enabled && {
|
|
|
|
killall -0 miniupnpd 2>/dev/null && {
|
|
|
|
. /lib/miniupnpd/firewall.sh
|
2008-12-25 03:25:13 +00:00
|
|
|
|
2008-12-25 03:46:04 +00:00
|
|
|
[ "$ACTION" = "ifup" ] && {
|
|
|
|
upnp_firewall_delif
|
|
|
|
upnp_firewall_addif
|
|
|
|
}
|
2008-12-25 03:25:13 +00:00
|
|
|
|
2008-12-25 03:46:04 +00:00
|
|
|
[ "$ACTION" = "ifdown" ] && {
|
|
|
|
upnp_firewall_delif
|
|
|
|
}
|
|
|
|
} || {
|
|
|
|
/etc/init.d/miniupnpd restart
|
2008-12-25 03:25:13 +00:00
|
|
|
}
|
|
|
|
}
|