summaryrefslogtreecommitdiffstats
path: root/etc/rc.linkup
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2013-12-13 23:09:06 +0000
committerErmal <eri@pfsense.org>2013-12-13 23:09:06 +0000
commitc71b14fd9cc86ad1f718aedc6bad726645099c6d (patch)
tree8d9d98b405831cecc3e07f3a36fe448a02c61d5e /etc/rc.linkup
parenta1007e19cf9511a25db35f72593fde79801f67e4 (diff)
downloadpfsense-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-xetc/rc.linkup5
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);
}
+}
?>
OpenPOWER on IntegriCloud