From bdc3c4891216785ffc80508060639ce48434b501 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Thu, 21 Dec 2006 00:21:43 +0000 Subject: * Set dhclient-script using option * Use -nw Obtained from latest m0n0 beta 1.3 --- etc/inc/interfaces.inc | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index f2a2db5..a0e1abc 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -957,7 +957,6 @@ function interfaces_opt_dhcp_configure($interface) { $dhclientconf .= <</tmp/{$optif}_output 2>/tmp/{$optif}_error_output"); + mwexec("/sbin/dhclient -nw -cf {$g['varetc_path']}/dhclient_{$optif}.conf -sf /sbin/dhclient-script {$optif} "); $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 -sf /sbin/dhclient-script {$optif}"); fclose($fout); return 0; @@ -1049,7 +1047,6 @@ function interfaces_wan_dhcp_configure() { $dhclientconf .= <</tmp/{$wanif}_output 2>/tmp/{$wanif}_error_output"); + mwexec("/sbin/dhclient -nw -cf {$g['varetc_path']}/dhclient_wan.conf -sf /sbin/dhclient-script {$wanif}"); $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 -sf /sbin/dhclient-script {$wanif}"); fclose($fout); return 0; -- cgit v1.1