diff options
author | Ermal <eri@pfsense.org> | 2013-12-20 22:50:27 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2013-12-20 22:50:27 +0000 |
commit | 3e5933f2c33b8d225f2f5c18aa63ed2b338ee67b (patch) | |
tree | 278f8f1b2e5da45e41e0fae3c920ff7011f4255c /etc | |
parent | af8251cc74c4dadf2ee7f6bd48bb44c01fe65053 (diff) | |
download | pfsense-3e5933f2c33b8d225f2f5c18aa63ed2b338ee67b.zip pfsense-3e5933f2c33b8d225f2f5c18aa63ed2b338ee67b.tar.gz |
Use return rather than exit to be friendly on CGI
Diffstat (limited to 'etc')
-rwxr-xr-x | etc/rc.newwanip | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/rc.newwanip b/etc/rc.newwanip index a499644..3d2daff 100755 --- a/etc/rc.newwanip +++ b/etc/rc.newwanip @@ -45,7 +45,7 @@ require_once("rrd.inc"); // Do not process while booting if($g['booting']) - exit; + return; function restart_packages() { global $oldip, $curwanip, $g; @@ -96,13 +96,13 @@ log_error("rc.newwanip: on (IP address: {$curwanip}) (interface: {$interface}) ( if($curwanip == "0.0.0.0" || !is_ipaddr($curwanip)) { log_error("rc.newwanip: Failed to update {$interface} IP, restarting..."); send_event("interface reconfigure {$interface}"); - exit; + return; } if (empty($interface)) { filter_configure(); restart_packages(); - exit; + return; } $oldip = "0.0.0.0"; |