diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-07-24 21:32:01 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-07-24 21:32:01 +0000 |
commit | d9d6a71d936999587ff6d133229d9d17e8afdacb (patch) | |
tree | b18051d10c6e62687de4b140a538a24ae6288af7 | |
parent | 02facbd03373b0e574ff4e6bc4fc317e1a3fc7c0 (diff) | |
download | pfsense-d9d6a71d936999587ff6d133229d9d17e8afdacb.zip pfsense-d9d6a71d936999587ff6d133229d9d17e8afdacb.tar.gz |
Start dhclient in the background
-rw-r--r-- | etc/inc/interfaces.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index c62c2d0..4883596 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -624,7 +624,7 @@ EOD; mwexec("/sbin/ifconfig {$wanif} up"); /* fire up dhclient */ - mwexec("/sbin/dhclient -c {$g['varetc_path']}/dhclient_wan.conf {$wanif} >/tmp/{$wanif}_output >/tmp/{$wanif}_error_output"); + mwexec_bg("/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}"); |