fix syntax error in preinit hook (#6610)
authorJo-Philipp Wich <jow@openwrt.org>
Sun, 31 Jan 2010 16:10:42 +0000 (16:10 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sun, 31 Jan 2010 16:10:42 +0000 (16:10 +0000)
SVN-Revision: 19461

target/linux/atheros/base-files/lib/preinit/15_preinit_iface_atheros

index c15b4de1eea8d8a4f72cc19c964cb15aa73b21db..418d5edd4ff238a1bbffb9de6e591ce492282311 100644 (file)
@@ -13,8 +13,9 @@ preinit_ip() {
                        else
                                ifname=eth0
                        fi
-               pi_ifname=$ifname
-       }
+                       pi_ifname=$ifname
+               }
+       fi
        [ -n "$pi_ifname" ] && grep "$pi_ifname" /proc/net/dev >/dev/null && {
                ifconfig $pi_ifname $pi_ip netmask $pi_netmask broadcast $pi_broadcast up
        }