commit
a0547225c0
|
@ -15,3 +15,6 @@ script2http Post script output via HTTP
|
||||||
sshfs Mounts remote File Systems over SSH
|
sshfs Mounts remote File Systems over SSH
|
||||||
uptime System Uptime
|
uptime System Uptime
|
||||||
urlsnarf Sniffs HTTP URL traffic
|
urlsnarf Sniffs HTTP URL traffic
|
||||||
|
clomac Clone Clients MAC address into WAN interface
|
||||||
|
upnp-portfwd uPnP Port Forwarding
|
||||||
|
ddnsc Dynamic Domain Name Service
|
||||||
|
|
|
@ -87,6 +87,7 @@ function start {
|
||||||
uci commit upnp_portfwd
|
uci commit upnp_portfwd
|
||||||
fi
|
fi
|
||||||
if [ ! -e "/usr/bin/upnpc" ]; then
|
if [ ! -e "/usr/bin/upnpc" ]; then
|
||||||
|
opkg update
|
||||||
opkg install miniupnpc
|
opkg install miniupnpc
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -119,7 +120,7 @@ function stop {
|
||||||
}
|
}
|
||||||
|
|
||||||
function status {
|
function status {
|
||||||
if [ "$(uci get upnp_portfwd.enabled)" == "1" ]; then
|
if [ "$(uci get upnp_portfwd.enabled 2>/dev/null)" == "1" ]; then
|
||||||
echo "1"
|
echo "1"
|
||||||
else
|
else
|
||||||
echo "0"
|
echo "0"
|
||||||
|
|
Loading…
Reference in New Issue