diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2010-01-31 16:10:42 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2010-01-31 16:10:42 +0000 |
commit | 79d995936f90b938779622fd226e3587a88e288f (patch) | |
tree | 6cf6012888fefe9baa14f87407654025e96be82d /target/linux/atheros/base-files/lib | |
parent | eee2dd953476ef666bf11f0ce22e02b910f23e06 (diff) | |
download | upstream-79d995936f90b938779622fd226e3587a88e288f.tar.gz upstream-79d995936f90b938779622fd226e3587a88e288f.tar.bz2 upstream-79d995936f90b938779622fd226e3587a88e288f.zip |
[atheros] fix syntax error in preinit hook (#6610)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19461 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/atheros/base-files/lib')
-rw-r--r-- | target/linux/atheros/base-files/lib/preinit/15_preinit_iface_atheros | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/target/linux/atheros/base-files/lib/preinit/15_preinit_iface_atheros b/target/linux/atheros/base-files/lib/preinit/15_preinit_iface_atheros index c15b4de1ee..418d5edd4f 100644 --- a/target/linux/atheros/base-files/lib/preinit/15_preinit_iface_atheros +++ b/target/linux/atheros/base-files/lib/preinit/15_preinit_iface_atheros @@ -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 } |