Do not start dhclient in bg

This commit is contained in:
Scott Ullrich 2005-07-23 01:54:43 +00:00
parent dc5f3ba517
commit 274d695f66

View File

@ -621,7 +621,7 @@ 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 -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}");