From c2d7a89bbe65804e1741ebfc125e6d3b75b4f32c Mon Sep 17 00:00:00 2001 From: Daniel Dickinson Date: Sun, 6 Mar 2011 18:57:06 +0000 Subject: [PATCH] miniupnpd: Added uci option config_file, which allows the user to specify that miniupnpd should use the specified file as the configuration file instead of /etc/miniupnpd.conf or none if no /etc/miniupnpd.conf present SVN-Revision: 25899 --- net/miniupnpd/files/miniupnpd.init | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/net/miniupnpd/files/miniupnpd.init b/net/miniupnpd/files/miniupnpd.init index 3576af028..82ea652c7 100644 --- a/net/miniupnpd/files/miniupnpd.init +++ b/net/miniupnpd/files/miniupnpd.init @@ -7,7 +7,7 @@ start() { config_load "upnpd" local extiface intiface upload download logging secure enabled natpmp - local extip port usesystuptime + local extip port usesysuptime conffile config_get extiface config external_iface config_get intiface config internal_iface @@ -20,6 +20,7 @@ start() { config_get_bool natpmp config enable_natpmp 0 config_get_bool enabled config enabled 0 config_get_bool usesysuptime config use_system_uptime 1 + config_get conffile config config_file include /lib/network scan_interfaces @@ -55,6 +56,9 @@ start() { [ "$natpmp" -gt 0 ] && \ append args "-N" + [ -n "$conffile" ] && \ + append args "-f $conffile" + # start firewall local zone config_load firewall -- 2.30.2