diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-09-03 18:38:36 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-09-03 18:38:36 +0000 |
commit | a892dca06bb2f868fafd34a10cf78fdadb03e4a1 (patch) | |
tree | bd16d5ad364fad038baf54f0db08d10e6732b0c5 /etc/inc/interfaces.inc | |
parent | 54879e59429b4ff0ddae88cb9a1eba6dbb886641 (diff) | |
download | pfsense-a892dca06bb2f868fafd34a10cf78fdadb03e4a1.zip pfsense-a892dca06bb2f868fafd34a10cf78fdadb03e4a1.tar.gz |
* Launch DHCLIENT in foreground mode.
* use mwexec_bg to launch item in the background
Confusing, eh?
Diffstat (limited to 'etc/inc/interfaces.inc')
-rw-r--r-- | etc/inc/interfaces.inc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index 0d57780..a337976 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -700,7 +700,7 @@ EOD; mwexec("/sbin/ifconfig {$optif} up"); /* fire up dhclient */ - mwexec("/sbin/dhclient -b -c {$g['varetc_path']}/dhclient_{$optif}.conf {$optif}"); + mwexec_bg("/sbin/dhclient -f -c {$g['varetc_path']}/dhclient_{$optif}.conf {$optif}"); return 0; } @@ -746,10 +746,10 @@ EOD; mwexec("/sbin/ifconfig {$optif} up"); /* fire up dhclient */ - mwexec("/sbin/dhclient -b -c {$g['varetc_path']}/dhclient_{$optif}.conf {$optif} >/tmp/{$optif}_output >/tmp/{$optif}_error_output"); + mwexec_bg("/sbin/dhclient -f -c {$g['varetc_path']}/dhclient_{$optif}.conf {$optif} >/tmp/{$optif}_output >/tmp/{$optif}_error_output"); $fout = fopen("/tmp/ifconfig_{$optif}","w"); - fwrite($fout, "/sbin/dhclient -b -c {$g['varetc_path']}/dhclient_{$optif}.conf {$optif}"); + fwrite($fout, "/sbin/dhclient -f -c {$g['varetc_path']}/dhclient_{$optif}.conf {$optif}"); fclose($fout); return 0; @@ -793,10 +793,10 @@ EOD; mwexec("/sbin/ifconfig {$wanif} up"); /* fire up dhclient */ - mwexec("/sbin/dhclient -b -c {$g['varetc_path']}/dhclient_wan.conf {$wanif} >/tmp/{$wanif}_output >/tmp/{$wanif}_error_output"); + mwexec_bg("/sbin/dhclient -f -c {$g['varetc_path']}/dhclient_wan.conf {$wanif} >/tmp/{$wanif}_output >/tmp/{$wanif}_error_output"); $fout = fopen("/tmp/ifconfig_{$wanif}","w"); - fwrite($fout, "/sbin/dhclient -b -c {$g['varetc_path']}/dhclient_wan.conf {$wanif}"); + fwrite($fout, "/sbin/dhclient -f -c {$g['varetc_path']}/dhclient_wan.conf {$wanif}"); fclose($fout); return 0; |