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