miniupnpd: make hotplug work again
authorKevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
Sun, 10 May 2020 12:39:09 +0000 (13:39 +0100)
committerKevin Darbyshire-Bryant <6500011+ldir-EDB0@users.noreply.github.com>
Sun, 10 May 2020 16:30:11 +0000 (17:30 +0100)
commitb7c59c390f0b739403ae9099e1affe94d214b51d
tree2d1e0726d854789c345f92197e7dead501aeaaeb
parent83d36065d5e678f3309375f5d07188f960a6850f
miniupnpd: make hotplug work again

hotplug scripts are sourced not exec'd so #!/bin/sh /etc/rc.common
doesn't pull in the functions defined in /etc/rc.common thus since
'enabled' isn't defined the following sequence always fails:

enabled miniupnpd || exit 0

Unfortunately sourcing /etc/rc.common doesn't appear to work so come up
with some alternatives.

Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
net/miniupnpd/Makefile
net/miniupnpd/files/miniupnpd.hotplug