diff options
author | Ermal <eri@pfsense.org> | 2013-12-13 23:09:06 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2013-12-13 23:09:06 +0000 |
commit | c71b14fd9cc86ad1f718aedc6bad726645099c6d (patch) | |
tree | 8d9d98b405831cecc3e07f3a36fe448a02c61d5e /etc/rc.linkup | |
parent | a1007e19cf9511a25db35f72593fde79801f67e4 (diff) | |
download | pfsense-c71b14fd9cc86ad1f718aedc6bad726645099c6d.zip pfsense-c71b14fd9cc86ad1f718aedc6bad726645099c6d.tar.gz |
Make scripts able to react when called from FCGI with GET method
Diffstat (limited to 'etc/rc.linkup')
-rwxr-xr-x | etc/rc.linkup | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/etc/rc.linkup b/etc/rc.linkup index 1994336..213dd92 100755 --- a/etc/rc.linkup +++ b/etc/rc.linkup @@ -84,6 +84,10 @@ function handle_argument_group($iface, $argument2) { global $g; if (!file_exists("{$g['varrun_path']}/booting") && empty($g['booting'])) { +if (isset($_GET)) { + if (!empty($_GET['interface'])) + handle_argument_group($_GET['interface'], $_GET['action']); +} else { if ($argc < 3) { log_error("HOTPLUG event: The number of required parameters not passed!"); exit; @@ -103,5 +107,6 @@ if (!file_exists("{$g['varrun_path']}/booting") && empty($g['booting'])) { if (!empty($interface)) handle_argument_group($interface, $action); } +} ?> |