summaryrefslogtreecommitdiffstats
path: root/etc/rc.linkup
diff options
context:
space:
mode:
authorErmal LUÇI <eri@pfsense.org>2014-11-26 13:10:01 +0100
committerErmal LUÇI <eri@pfsense.org>2014-11-26 13:10:01 +0100
commit285ef132f7d671620f269a57d2ebcff585d2a493 (patch)
treeb491fad66d22765d9640b2ac543c41b6e417a95d /etc/rc.linkup
parent32e834ffd3b4cc6cdc6b147c91cb6dbcb0a93288 (diff)
downloadpfsense-285ef132f7d671620f269a57d2ebcff585d2a493.zip
pfsense-285ef132f7d671620f269a57d2ebcff585d2a493.tar.gz
Rather than set the g['booting'] on globals provide a function to test for that doing the right checks
Diffstat (limited to 'etc/rc.linkup')
-rwxr-xr-xetc/rc.linkup3
1 files changed, 1 insertions, 2 deletions
diff --git a/etc/rc.linkup b/etc/rc.linkup
index 29d3c5c..395486a 100755
--- a/etc/rc.linkup
+++ b/etc/rc.linkup
@@ -94,8 +94,7 @@ function handle_argument_group($iface, $argument2) {
}
}
-global $g;
-if (!file_exists("{$g['varrun_path']}/booting") && empty($g['booting'])) {
+if (platform_booting()) {
if (isset($_GET['interface'])) {
if (!empty($_GET['interface']))
handle_argument_group(convert_real_interface_to_friendly_interface_name($_GET['interface']), $_GET['action']);
OpenPOWER on IntegriCloud