diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-11-13 02:08:13 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-11-13 02:08:13 +0000 |
commit | dabfd93717d955ddf7d59caa9234047d2b30429a (patch) | |
tree | 3783f3ea6e1692ef80118acdfdb87597ddc82efc | |
parent | 6a3464b7b8d999b5027da98b587c73b0cf1bcffa (diff) | |
download | pfsense-dabfd93717d955ddf7d59caa9234047d2b30429a.zip pfsense-dabfd93717d955ddf7d59caa9234047d2b30429a.tar.gz |
Add -nw to dhclient command
-rw-r--r-- | etc/inc/interfaces.inc | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index 6d1d981..5fab5d4 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -816,7 +816,6 @@ function interfaces_opt_dhcp_configure($interface) { if ($optcfg['dhcphostname']) { $dhclientconf_hostname = "send dhcp-client-identifier \"{$optcfg['dhcphostname']}\";\n"; - $dhclientconf_hostname = " send dhcp-client-identifier \"{$optcfg['dhcphostname']}\";\n"; } else { $dhclientconf_hostname = ""; } @@ -839,7 +838,7 @@ EOD; mwexec("/sbin/ifconfig {$optif} up"); /* fire up dhclient */ - mwexec("/sbin/dhclient -cf {$g['varetc_path']}/dhclient_{$optif}.conf {$optif}"); + mwexec("/sbin/dhclient -nw -cf {$g['varetc_path']}/dhclient_{$optif}.conf {$optif}"); return 0; } @@ -861,7 +860,6 @@ function interfaces_dhcp_configure($interface) { if ($optcfg['dhcphostname']) { $dhclientconf_hostname = "send dhcp-client-identifier \"{$optcfg['dhcphostname']}\";\n"; - $dhclientconf_hostname = " send dhcp-client-identifier \"{$optcfg['dhcphostname']}\";\n"; } else { $dhclientconf_hostname = ""; } @@ -885,10 +883,10 @@ EOD; mwexec("/sbin/ifconfig {$optif} up"); /* fire up dhclient */ - mwexec("/sbin/dhclient -cf {$g['varetc_path']}/dhclient_{$optif}.conf {$optif} >/tmp/{$optif}_output >/tmp/{$optif}_error_output"); + mwexec("/sbin/dhclient -nw -cf {$g['varetc_path']}/dhclient_{$optif}.conf {$optif} >/tmp/{$optif}_output >/tmp/{$optif}_error_output"); $fout = fopen("/tmp/ifconfig_{$optif}","w"); - fwrite($fout, "/sbin/dhclient -cf {$g['varetc_path']}/dhclient_{$optif}.conf {$optif}"); + fwrite($fout, "/sbin/dhclient -nw -cf {$g['varetc_path']}/dhclient_{$optif}.conf {$optif}"); fclose($fout); return 0; @@ -908,7 +906,6 @@ function interfaces_wan_dhcp_configure() { if ($wancfg['dhcphostname']) { $dhclientconf_hostname = "send dhcp-client-identifier \"{$wancfg['dhcphostname']}\";\n"; - $dhclientconf_hostname = " send dhcp-client-identifier \"{$wancfg['dhcphostname']}\";\n"; } else { $dhclientconf_hostname = ""; } @@ -932,10 +929,10 @@ EOD; mwexec("/sbin/ifconfig {$wanif} up"); /* fire up dhclient */ - mwexec("/sbin/dhclient -cf {$g['varetc_path']}/dhclient_wan.conf {$wanif} >/tmp/{$wanif}_output >/tmp/{$wanif}_error_output"); + mwexec("/sbin/dhclient -nw -cf {$g['varetc_path']}/dhclient_wan.conf {$wanif} >/tmp/{$wanif}_output >/tmp/{$wanif}_error_output"); $fout = fopen("/tmp/ifconfig_{$wanif}","w"); - fwrite($fout, "/sbin/dhclient -cf {$g['varetc_path']}/dhclient_wan.conf {$wanif}"); + fwrite($fout, "/sbin/dhclient -nw -cf {$g['varetc_path']}/dhclient_wan.conf {$wanif}"); fclose($fout); return 0; |