fix typo (#693)
authorFelix Fietkau <nbd@openwrt.org>
Tue, 22 Aug 2006 12:24:37 +0000 (12:24 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Tue, 22 Aug 2006 12:24:37 +0000 (12:24 +0000)
SVN-Revision: 4628

openwrt/package/base-files/default/etc/functions.sh

index d13bdc34373fecd062c0db59ba5e84e9960d0689..95550a236c16f208c2cec595f3c812af1c15b110 100755 (executable)
@@ -73,7 +73,7 @@ do_ifup() {
                DHCP_IP=$(nvram get ${2}_ipaddr)
                DHCP_NETMASK=$(nvram get ${2}_netmask)
                mtu=$(nvram get ${2}_mtu)
-               $DEBUG ifconfig $if $ip ${netmask:+netmask $netmask} ${mtu:+mtu $(($mtu))} broadcast + up
+               $DEBUG ifconfig $if $DHCP_IP ${DHCP_NETMASK:+netmask $DHCP_NETMASK} ${mtu:+mtu $(($mtu))} broadcast + up
 
                DHCP_ARGS="-i $if ${DHCP_IP:+-r $DHCP_IP} -b -p $pidfile"
                DHCP_HOSTNAME=$(nvram get ${2}_hostname)