fix small error in the dnsmasq init script
authorFelix Fietkau <nbd@openwrt.org>
Tue, 21 Mar 2006 16:22:41 +0000 (16:22 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Tue, 21 Mar 2006 16:22:41 +0000 (16:22 +0000)
SVN-Revision: 3435

openwrt/package/dnsmasq/files/S50dnsmasq

index a3f707d37b6d1ab877f1ef22f5221cd2fe577185..fbb75c52e88824df9f27dcf33824bdef1ccd6edc 100755 (executable)
@@ -7,12 +7,12 @@
 
 # DHCP interface (lan, wan, wifi -- any ifup *)
 iface=lan
+ifname=$(nvram get ${iface}_ifname)
 
 udhcpc -n -q -R -s /bin/true -i $ifname >&- || {
   # no existing DHCP server?
 
   # calculate settings
-  ifname=$(nvram get ${iface}_ifname)
   ipaddr=$(nvram get ${iface}_ipaddr)
   netmask=$(nvram get ${iface}_netmask)
   start=$(nvram get dhcp_start)