summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorSeth Mos <seth.mos@xs4all.nl>2007-10-09 21:20:03 +0000
committerSeth Mos <seth.mos@xs4all.nl>2007-10-09 21:20:03 +0000
commitb34e6d8409279fc95a64312ea3b92b92cfb54726 (patch)
tree89c6620dfc9a335ecc6afb4c7c9997ea42270749 /etc
parente95c7cd6d75a49427ebe121ee0d97ed10dbdf163 (diff)
downloadpfsense-b34e6d8409279fc95a64312ea3b92b92cfb54726.zip
pfsense-b34e6d8409279fc95a64312ea3b92b92cfb54726.tar.gz
Check if interface is passed along, otherwise return
Diffstat (limited to 'etc')
-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