diff options
author | Ermal <eri@pfsense.org> | 2010-08-20 12:33:12 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2010-08-20 12:33:12 +0000 |
commit | dea80743c6473802b016250ab37d49061c5b2b07 (patch) | |
tree | 07e1c19a7de91cf47b6b8c984873bc0d1afa7fb9 /etc/rc.interfaces_wan_configure | |
parent | 88c00a6569d6080230a972b2de5e1c6c0c1c098b (diff) | |
download | pfsense-dea80743c6473802b016250ab37d49061c5b2b07.zip pfsense-dea80743c6473802b016250ab37d49061c5b2b07.tar.gz |
Ticket #684. Dispatch the reloading of the interface in dial-on-demand case to easy the GUI responsivess.
Diffstat (limited to 'etc/rc.interfaces_wan_configure')
-rwxr-xr-x | etc/rc.interfaces_wan_configure | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/etc/rc.interfaces_wan_configure b/etc/rc.interfaces_wan_configure index 02063f5..3969777 100755 --- a/etc/rc.interfaces_wan_configure +++ b/etc/rc.interfaces_wan_configure @@ -34,6 +34,12 @@ require_once("functions.inc"); require_once("filter.inc"); require_once("shaper.inc"); -interface_configure("wan"); +$argument = str_replace("\n", "", $argv[1]); +if (empty($argument)) + interface_configure("wan"); +else { + if (!empty($config['interfaces'][$argument])) + interface_configure($argument); +} ?> |