From e55e4b748c7396ab74e93e14fe8d8887fdb43784 Mon Sep 17 00:00:00 2001 From: Chris Buechler Date: Wed, 5 Nov 2014 19:47:22 -0600 Subject: 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. --- etc/rc.linkup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'etc/rc.linkup') 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 { -- cgit v1.1