aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
Diffstat (limited to 'packages')
-rw-r--r--packages/miniupnpd/miniupnpd.inc8
-rw-r--r--packages/miniupnpd/miniupnpd.xml2
2 files changed, 4 insertions, 6 deletions
diff --git a/packages/miniupnpd/miniupnpd.inc b/packages/miniupnpd/miniupnpd.inc
index 47736018..b3829ff3 100644
--- a/packages/miniupnpd/miniupnpd.inc
+++ b/packages/miniupnpd/miniupnpd.inc
@@ -16,17 +16,15 @@
else if($config['installedpackages']['miniupnpd']['config'][0]['overridewanip'])
$overridewanip = $config['installedpackages']['miniupnpd']['config'][0]['overridewanip'];
- if(is_array($_POST['interface_array']))
+ if($_POST['interface_array'])
$interface_array = $_POST['interface_array'];
- else if($config['installedpackages']['miniupnpd']['config'][0]['interface_array'])
+ else if(is_array($config['installedpackages']['miniupnpd']['config'][0]['interface_array']))
$interface_array = $config['installedpackages']['miniupnpd']['config'][0]['interface_array'];
if($interface_array) {
foreach($_POST['interface_array'] as $iface) {
$if = convert_friendly_interface_to_real_interface_name($iface);
if($if) {
- //if($first == 1)
- //$ifaces_final .= ",";
$addr = find_interface_ip($if);
$ifaces_final .= " -i {$wanif} -a {$addr}";
$first = 1;
@@ -59,4 +57,4 @@
config_unlock();
conf_mount_ro();
}
-?>
+?> \ No newline at end of file
diff --git a/packages/miniupnpd/miniupnpd.xml b/packages/miniupnpd/miniupnpd.xml
index 98a3b7f5..f786f754 100644
--- a/packages/miniupnpd/miniupnpd.xml
+++ b/packages/miniupnpd/miniupnpd.xml
@@ -70,6 +70,6 @@
sync_package_miniupnpd();
</custom_add_php_command>
<custom_php_deinstall_command>
- exec("rm /usr/local/etc/rc.d/miniupnpd*");
+ exec("rm -f /usr/local/etc/rc.d/miniupnpd*");
</custom_php_deinstall_command>
</packagegui>