summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-04-29 23:00:15 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-04-29 23:00:15 +0000
commitd131e83d044da4a479b4966f820d59d1037af8a8 (patch)
treea732be1f81ae251dadc57f46e45e7f9d831a2384 /etc
parent761902b01e313140902f128912f3b2daca47a67e (diff)
downloadpfsense-d131e83d044da4a479b4966f820d59d1037af8a8.zip
pfsense-d131e83d044da4a479b4966f820d59d1037af8a8.tar.gz
Use $_SERVER['argvc'] and $_SERVER['argv'][$x]. This fixes the linkup issues (hotplug)
Diffstat (limited to 'etc')
-rwxr-xr-xetc/rc.linkup8
1 files changed, 4 insertions, 4 deletions
diff --git a/etc/rc.linkup b/etc/rc.linkup
index 83a4d4a..9313c9c 100755
--- a/etc/rc.linkup
+++ b/etc/rc.linkup
@@ -37,10 +37,10 @@
if($g['booting'] == true) {
/* ignore all linkup events */
} else {
- for ($i = 1; $i <= $ARGC; $i++) {
- $argspassed .= $ARGV[$i] . " ";
- $argument1 = $ARGV[$i];
- $argument2 = $ARGV[$i+1];
+ for ($i = 1; $i <= $_SERVER['argc']; $i++) {
+ $argspassed .= $_SERVER['argv'][$i] . " ";
+ $argument1 = $_SERVER['argv'][$i];
+ $argument2 = $_SERVER['argv'][$i+1];
handle_argument_group($argument1, $argument2);
}
}
OpenPOWER on IntegriCloud