summaryrefslogtreecommitdiffstats
path: root/etc/rc.linkup
diff options
context:
space:
mode:
Diffstat (limited to 'etc/rc.linkup')
-rwxr-xr-xetc/rc.linkup4
1 files changed, 4 insertions, 0 deletions
diff --git a/etc/rc.linkup b/etc/rc.linkup
index a1de23f..57a51a9 100755
--- a/etc/rc.linkup
+++ b/etc/rc.linkup
@@ -53,6 +53,10 @@
log_error("Not a valid interface \"$iface\"");
return;
}
+ if($argument2 == "") {
+ log_error("Not a valid interface action \"$argument2\"");
+ return;
+ }
if($config['interfaces'][$iface]['ipaddr'] <> "dhcp" and
$config['interfaces'][$iface]['ipaddr'] <> "pppoe" and
$config['interfaces'][$iface]['ipaddr'] <> "bigpond" and
OpenPOWER on IntegriCloud