summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-08-10 20:22:02 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-08-10 20:22:02 +0000
commit5befea23278ab2cfa3cc4baef6b317dedcf27fe7 (patch)
tree5bad30383086ee17bf71a962e709ba496d549f76 /etc/inc
parentceae1304b54df09ad14943e04b02ceeb0c90d63c (diff)
downloadpfsense-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.inc6
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;
OpenPOWER on IntegriCloud