diff options
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/services.inc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/etc/inc/services.inc b/etc/inc/services.inc index 0d46b80..0e82bba 100644 --- a/etc/inc/services.inc +++ b/etc/inc/services.inc @@ -1261,6 +1261,10 @@ function upnp_action ($action) { function upnp_start() { global $config, $g; + + if(!isset($config['installedpackages']['miniupnpd']['config'])) + return; + if($config['installedpackages']['miniupnpd']['config'][0]['enable']) { if($g['booting']) { echo "Starting UPnP service... "; |