diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-08-10 20:22:02 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-08-10 20:22:02 +0000 |
commit | 5befea23278ab2cfa3cc4baef6b317dedcf27fe7 (patch) | |
tree | 5bad30383086ee17bf71a962e709ba496d549f76 /etc/inc | |
parent | ceae1304b54df09ad14943e04b02ceeb0c90d63c (diff) | |
download | pfsense-5befea23278ab2cfa3cc4baef6b317dedcf27fe7.zip pfsense-5befea23278ab2cfa3cc4baef6b317dedcf27fe7.tar.gz |
Tell dhclient to go into background and don't call mwexec_bg()
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/interfaces.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index 998fbd1..acfb3cf 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -641,7 +641,7 @@ EOD; mwexec("/sbin/ifconfig {$optif} up"); /* fire up dhclient */ - mwexec_bg("/sbin/dhclient -c {$g['varetc_path']}/dhclient_{$interface}.conf {$optif}"); + mwexec("/sbin/dhclient -b -c {$g['varetc_path']}/dhclient_{$interface}.conf {$optif}"); return 0; } @@ -680,10 +680,10 @@ EOD; mwexec("/sbin/ifconfig {$wanif} up"); /* fire up dhclient */ - mwexec_bg("/sbin/dhclient -c {$g['varetc_path']}/dhclient_wan.conf {$wanif} >/tmp/{$wanif}_output >/tmp/{$wanif}_error_output"); + mwexec("/sbin/dhclient -b -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 -c {$g['varetc_path']}/dhclient_wan.conf {$wanif}"); + fwrite($fout, "/sbin/dhclient -b -c {$g['varetc_path']}/dhclient_wan.conf {$wanif}"); fclose($fout); return 0; |