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.newwanip | |
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.newwanip')
-rwxr-xr-x | etc/rc.newwanip | 5 |
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}."); |