diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-07-24 20:12:29 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-07-24 20:12:29 +0000 |
commit | 8551d2effc6ed2443afab925d4fc68aa658161f2 (patch) | |
tree | 5824066dba308a31304998e026e3f675f26bc032 | |
parent | 4f409c9e910035a782a5618c7941ec75ae763f8d (diff) | |
download | pfsense-8551d2effc6ed2443afab925d4fc68aa658161f2.zip pfsense-8551d2effc6ed2443afab925d4fc68aa658161f2.tar.gz |
Tweak sleep values
-rw-r--r-- | etc/inc/interfaces.inc | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index 634c4e3..c62c2d0 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -345,7 +345,7 @@ function interfaces_carp_bringup() { global $g; /* lets bring the carp interfaces up now */ if ($g['booting']) - sleep(5); + sleep(1); $carp_ints = find_number_of_created_carp_interfaces(); for($x=0; $x<$carp_ints; $x++) mwexec("/sbin/ifconfig carp{$x} up"); @@ -623,8 +623,6 @@ EOD; /* bring wan interface up before starting dhclient */ mwexec("/sbin/ifconfig {$wanif} up"); - sleep(5); - /* fire up dhclient */ mwexec("/sbin/dhclient -c {$g['varetc_path']}/dhclient_wan.conf {$wanif} >/tmp/{$wanif}_output >/tmp/{$wanif}_error_output"); @@ -641,12 +639,12 @@ function interfaces_wan_dhcp_down() { $wanif = $wancfg['if']; mwexec("/sbin/dhclient -r"); mwexec("/sbin/ifconfig {$wanif} delete"); - sleep(3); + sleep(1); } function interfaces_wan_dhcp_up() { interfaces_wan_dhcp_configure(); - sleep(3); + sleep(1); } function interfaces_wan_pppoe_configure() { @@ -749,13 +747,13 @@ EOD; function interfaces_wan_pppoe_down() { global $g; sigkillbypid("{$g['varrun_path']}/mpd.pid", "SIGUSR2"); - sleep(3); + sleep(1); } function interfaces_wan_pppoe_up() { global $g; sigkillbypid("{$g['varrun_path']}/mpd.pid", "SIGUSR1"); - sleep(3); + sleep(1); } function interfaces_wan_pptp_configure() { @@ -861,13 +859,13 @@ EOD; function interfaces_wan_pptp_down() { global $g; sigkillbypid("{$g['varrun_path']}/mpd.pid", "SIGUSR2"); - sleep(3); + sleep(1); } function interfaces_wan_pptp_up() { global $g; sigkillbypid("{$g['varrun_path']}/mpd.pid", "SIGUSR1"); - sleep(3); + sleep(1); } function interfaces_wan_bigpond_configure($curwanip) { |