1 #!/bin/sh /etc/rc.common
2 # Copyright (C) 2006 OpenWrt.org
3 # Copyright (C) 2006 loswillios
9 # $WAN contains WAN ifname
10 config_get WAN wan ifname
12 # $LAN contains WAN ifname
13 config_get LAN lan ifname
16 echo -n "Starting UPnP: "
17 route add
-net 239.0.0.0 netmask
255.0.0.0 $LAN
23 echo -n "Stopping UPnP: "
24 route del
-net 239.0.0.0 netmask
255.0.0.0 $LAN