summaryrefslogtreecommitdiffstats
path: root/etc/rc.linkup
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-02-06 19:26:59 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-02-06 19:26:59 +0000
commit24370be17b2926ace50011b485c492d527e99837 (patch)
tree644d828a180e1797b07cd71ff7d7817e6f6b8601 /etc/rc.linkup
parentfc0b67b06a2f2175f1c7c367542696a1710b060a (diff)
downloadpfsense-24370be17b2926ace50011b485c492d527e99837.zip
pfsense-24370be17b2926ace50011b485c492d527e99837.tar.gz
Do not loop forever
Diffstat (limited to 'etc/rc.linkup')
-rwxr-xr-xetc/rc.linkup6
1 files changed, 4 insertions, 2 deletions
diff --git a/etc/rc.linkup b/etc/rc.linkup
index f9cfaee..2ef5fe7 100755
--- a/etc/rc.linkup
+++ b/etc/rc.linkup
@@ -41,12 +41,14 @@
} else {
$processing = true;
$counter = 1;
+ $argspassed = file_get_contents("/tmp/rc.linkup");
+ log_error("Arguments passed rc.linkup. '{$argspassed}'");
while($processing == true) {
- $argspassed = file_get_contents("/tmp/rc.linkup");
- log_error("Arguments passed rc.linkup. '{$argspassed}'");
/* do not process nics twice */
if (in_array($argv[$counter] . $argv[$counter+1], $processed_nics))
continue;
+ if($argv[$counter] == "")
+ exit;
$processed_nics[] = $argv[$counter] . $argv[$counter+1];
log_error("Processing {$argv[$counter]} - {$argv[$counter+1]}");
$friendly_interface = convert_real_interface_to_friendly_interface_name($argv[$counter]);
OpenPOWER on IntegriCloud