diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-08-16 21:01:11 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-08-16 21:01:11 +0000 |
commit | aab78cf675ca05db9645e6a9e421c27cb20c5d53 (patch) | |
tree | 02214ec29c1dfc12bea96f7ef9d506d97599aa7b /etc/inc/interfaces.inc | |
parent | da9de3716932be5164661d8426f7803bc7dcf26b (diff) | |
download | pfsense-aab78cf675ca05db9645e6a9e421c27cb20c5d53.zip pfsense-aab78cf675ca05db9645e6a9e421c27cb20c5d53.tar.gz |
Use correct interface
Diffstat (limited to 'etc/inc/interfaces.inc')
-rw-r--r-- | etc/inc/interfaces.inc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index 350d944..2168d25 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -614,9 +614,9 @@ function interfaces_opt_dhcp_configure($interface) { $optif = $optcfg['if']; /* generate dhclient_wan.conf */ - $fd = fopen("{$g['varetc_path']}/dhclient_{$interface}.conf", "w"); + $fd = fopen("{$g['varetc_path']}/dhclient_{$optif}.conf", "w"); if (!$fd) { - printf("Error: cannot open dhclient_{$interface}.conf in interfaces_opt_dhcp_configure({$interface}) for writing.\n"); + printf("Error: cannot open dhclient_{$optif}.conf in interfaces_opt_dhcp_configure({$optif}) for writing.\n"); return 1; } @@ -624,7 +624,7 @@ function interfaces_opt_dhcp_configure($interface) { if ($optcfg['dhcphostname']) { $dhclientconf .= <<<EOD - interface "{$optcfg['if']}" { + interface "{$optif}" { send dhcp-client-identifier "{$optcfg['dhcphostname']}"; send host-name "{$optcfg['dhcphostname']}"; script "/sbin/dhclient-script"; @@ -640,7 +640,7 @@ EOD; mwexec("/sbin/ifconfig {$optif} up"); /* fire up dhclient */ - mwexec("/sbin/dhclient -b -c {$g['varetc_path']}/dhclient_{$interface}.conf {$optif}"); + mwexec("/sbin/dhclient -b -c {$g['varetc_path']}/dhclient_{$optif}.conf {$optif}"); return 0; } |