From bead87f094f99a8fcf83ca55ada94705d7679ebe Mon Sep 17 00:00:00 2001 From: Darren Kitchen Date: Wed, 26 Aug 2015 21:09:05 -0700 Subject: [PATCH 1/4] Update module_list Added upnp-portfwd and clomac --- modules/module_list | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/module_list b/modules/module_list index e0eddf9..0219fad 100644 --- a/modules/module_list +++ b/modules/module_list @@ -15,3 +15,5 @@ script2http Post script output via HTTP sshfs Mounts remote File Systems over SSH uptime System Uptime urlsnarf Sniffs HTTP URL traffic +clomac Clone Client's MAC address into WAN interface +upnp-portfwd uPnP Port Forwarding From 35b8fcb0098986a52c71c25710b68222797ac8c5 Mon Sep 17 00:00:00 2001 From: Darren Kitchen Date: Wed, 26 Aug 2015 21:09:14 -0700 Subject: [PATCH 2/4] Update module_list --- modules/module_list | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/module_list b/modules/module_list index 0219fad..268ff6f 100644 --- a/modules/module_list +++ b/modules/module_list @@ -15,5 +15,5 @@ script2http Post script output via HTTP sshfs Mounts remote File Systems over SSH uptime System Uptime urlsnarf Sniffs HTTP URL traffic -clomac Clone Client's MAC address into WAN interface +clomac Clone Clients MAC address into WAN interface upnp-portfwd uPnP Port Forwarding From 44bdf9920ca5f727bb4eed58f2dcc9764f4798e4 Mon Sep 17 00:00:00 2001 From: Darren Kitchen Date: Thu, 27 Aug 2015 17:45:49 -0700 Subject: [PATCH 3/4] Update module_list Added ddnsc --- modules/module_list | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/module_list b/modules/module_list index 268ff6f..68c5107 100644 --- a/modules/module_list +++ b/modules/module_list @@ -17,3 +17,4 @@ uptime System Uptime urlsnarf Sniffs HTTP URL traffic clomac Clone Clients MAC address into WAN interface upnp-portfwd uPnP Port Forwarding +ddnsc Dynamic Domain Name Service From bd859a4c8ac332f1cff1710fd551ba59627b03a9 Mon Sep 17 00:00:00 2001 From: Darren Kitchen Date: Thu, 27 Aug 2015 18:17:53 -0700 Subject: [PATCH 4/4] Fixes opkg install and status issue Fixes install issue where opkg update must be completed before opkg install. Removes "uci: No entry found" error if service hasn't started from status function. --- modules/upnp-portfwd | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/upnp-portfwd b/modules/upnp-portfwd index 47bd4fa..c322ab9 100644 --- a/modules/upnp-portfwd +++ b/modules/upnp-portfwd @@ -87,6 +87,7 @@ function start { uci commit upnp_portfwd fi if [ ! -e "/usr/bin/upnpc" ]; then + opkg update opkg install miniupnpc fi @@ -119,7 +120,7 @@ function stop { } function status { - if [ "$(uci get upnp_portfwd.enabled)" == "1" ]; then + if [ "$(uci get upnp_portfwd.enabled 2>/dev/null)" == "1" ]; then echo "1" else echo "0"