diff options
-rwxr-xr-x | etc/rc.dyndns.update | 5 | ||||
-rwxr-xr-x | etc/rc.interfaces_wan_configure | 5 | ||||
-rwxr-xr-x | etc/rc.linkup | 5 | ||||
-rwxr-xr-x | etc/rc.newwanip | 5 | ||||
-rwxr-xr-x | etc/rc.openvpn | 5 |
5 files changed, 21 insertions, 4 deletions
diff --git a/etc/rc.dyndns.update b/etc/rc.dyndns.update index 006e160..5e651b0 100755 --- a/etc/rc.dyndns.update +++ b/etc/rc.dyndns.update @@ -37,7 +37,10 @@ require_once("shaper.inc"); /* Interface IP address has changed */ -$argument = trim($argv[1], " \n"); +if (isset($_GET)) + $argument = $_GET['dyndns']; +else + $argument = trim($argv[1], " \n"); if(empty($argument) || $argument == "all") { services_dyndns_configure(); diff --git a/etc/rc.interfaces_wan_configure b/etc/rc.interfaces_wan_configure index 3969777..f8e1bce 100755 --- a/etc/rc.interfaces_wan_configure +++ b/etc/rc.interfaces_wan_configure @@ -34,7 +34,10 @@ require_once("functions.inc"); require_once("filter.inc"); require_once("shaper.inc"); -$argument = str_replace("\n", "", $argv[1]); +if (isset($_GET)) + $argument = $_GET['interface']; +else + $argument = str_replace("\n", "", $argv[1]); if (empty($argument)) interface_configure("wan"); else { 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); } +} ?> 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}."); diff --git a/etc/rc.openvpn b/etc/rc.openvpn index 0af7f2a..3148e4f 100755 --- a/etc/rc.openvpn +++ b/etc/rc.openvpn @@ -71,7 +71,10 @@ if (file_exists("{$g['varrun_path']}/booting")) return; /* Input argument is a comma-separated list of gateway names, blank or "all". */ -$argument = trim($argv[1], " \n"); +if (isset($_GET)) + $argument = $_GET['interface']; +else + $argument = trim($argv[1], " \n"); if(is_array($config['openvpn']['openvpn-server']) || is_array($config['openvpn']['openvpn-client'])) { if (empty($argument) || $argument == "all") { |