Add a 'master' miniupnpd service enable flag rather than just relying on
rcS.d script existence. This allows the service to be disabled across
sysupgrade, similar to minidlna.
The service assumes enabled if no 'enabled' config flag is configured
for backwards compatibility.
Signed-off-by: Kevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk>
* Remove 'local' variable definitions from hotplug script.
Busybox 1.25.0 does not allow local variables defined outside functions.
This fixes#231
* Change startup priority from 95 to 94, so that miniupnpd starts
before S95done (which is intended to be run last).
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
add MINIUPNPD-POSTROUTING rule. Solves following error
addmasqueraderule() : chain MINIUPNPD-POSTROUTING not found
Signed-off-by: Kevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk>
During shutdown, miniupnpd is stopped after network. Because of this,
miniupnpd is unable to broadcast good-bye notifications, and displays an
error message. Stop miniupnpd before netifd to solve this.
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
A missing space in the init script prevented the detection of the external
interface. Fixes OpenWrt bug #16910.
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>