diff options
author | Seth Mos <seth.mos@xs4all.nl> | 2007-10-09 21:20:03 +0000 |
---|---|---|
committer | Seth Mos <seth.mos@xs4all.nl> | 2007-10-09 21:20:03 +0000 |
commit | b34e6d8409279fc95a64312ea3b92b92cfb54726 (patch) | |
tree | 89c6620dfc9a335ecc6afb4c7c9997ea42270749 /etc | |
parent | e95c7cd6d75a49427ebe121ee0d97ed10dbdf163 (diff) | |
download | pfsense-b34e6d8409279fc95a64312ea3b92b92cfb54726.zip pfsense-b34e6d8409279fc95a64312ea3b92b92cfb54726.tar.gz |
Check if interface is passed along, otherwise return
Diffstat (limited to 'etc')
-rwxr-xr-x | etc/rc.linkup | 4 |
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 |