summaryrefslogtreecommitdiffstats
path: root/etc/rc.linkup
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2014-11-05 19:47:22 -0600
committerChris Buechler <cmb@pfsense.org>2014-11-05 19:47:22 -0600
commite55e4b748c7396ab74e93e14fe8d8887fdb43784 (patch)
tree1cad3e342989659b3b2dcb1b638bc71e955eecf4 /etc/rc.linkup
parentc75e8aed2fad368ef1804e926dca23bef247155c (diff)
downloadpfsense-e55e4b748c7396ab74e93e14fe8d8887fdb43784.zip
pfsense-e55e4b748c7396ab74e93e14fe8d8887fdb43784.tar.gz
isset($_GET) seems to always evaluate to true, use something more specific. Fixes use of rc.linkup when run from CLI. Others likely fix similar circumstances, though maybe not ones that are used anywhere.
Diffstat (limited to 'etc/rc.linkup')
-rwxr-xr-xetc/rc.linkup2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/rc.linkup b/etc/rc.linkup
index 6f7d158..bff0c55 100755
--- a/etc/rc.linkup
+++ b/etc/rc.linkup
@@ -85,7 +85,7 @@ function handle_argument_group($iface, $argument2) {
global $g;
if (!file_exists("{$g['varrun_path']}/booting") && empty($g['booting'])) {
-if (isset($_GET)) {
+if (isset($_GET['interface'])) {
if (!empty($_GET['interface']))
handle_argument_group($_GET['interface'], $_GET['action']);
} else {
OpenPOWER on IntegriCloud