summaryrefslogtreecommitdiffstats
path: root/etc/rc.newwanip
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.newwanip
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.newwanip')
-rwxr-xr-xetc/rc.newwanip5
1 files changed, 4 insertions, 1 deletions
diff --git a/etc/rc.newwanip b/etc/rc.newwanip
index 3186f0f..a499644 100755
--- a/etc/rc.newwanip
+++ b/etc/rc.newwanip
@@ -58,7 +58,10 @@ function restart_packages() {
}
/* Interface IP address has changed */
-$argument = str_replace("\n", "", $argv[1]);
+if (isset($_GET['interface']))
+ $argument = $_GET['interface'];
+else
+ $argument = str_replace("\n", "", $argv[1]);
log_error("rc.newwanip: Informational is starting {$argument}.");
OpenPOWER on IntegriCloud