From 6fdc10668dfe5d30d26987a8a034764df639657c Mon Sep 17 00:00:00 2001 From: jow Date: Sun, 31 Jan 2010 16:10:42 +0000 Subject: [PATCH] [atheros] fix syntax error in preinit hook (#6610) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19461 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- .../atheros/base-files/lib/preinit/15_preinit_iface_atheros | 5 +++-- 1 file 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 c15b4de1e..418d5edd4 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 } -- 2.20.1