X-Git-Url: http://git.ozo.com/?a=blobdiff_plain;f=target%2Flinux%2Fbrcm-2.4%2Fbase-files%2Fetc%2Finit.d%2Fnetconfig;h=638f664bef322ceffc4ad278d294d08e06f55462;hb=8ea05ffd2b12394f22ffba544e8e9c81891e3bef;hp=b5d900a73b2dd84ea609b5ec0a6a920c8f318e01;hpb=a1ca4142c765bb354a68b9aa67298a4c6130dcd6;p=openwrt-10.03%2F.git diff --git a/target/linux/brcm-2.4/base-files/etc/init.d/netconfig b/target/linux/brcm-2.4/base-files/etc/init.d/netconfig index b5d900a73..638f664be 100755 --- a/target/linux/brcm-2.4/base-files/etc/init.d/netconfig +++ b/target/linux/brcm-2.4/base-files/etc/init.d/netconfig @@ -15,10 +15,10 @@ start() { vlan[0-9]|vlan1[0-5]) local id="${1#vlan}" append batch "delete network.eth0.${1}${N}" - append batch "set network.eth0_${n}=switch_vlan${N}" - append batch "set network.eth0_${n}.device=eth0${N}" - append batch "set network.eth0_${n}.vlan=${id}${N}" - append batch "set network.eth0_${n}.ports='${2}'${N}" + append batch "set network.eth0_${id}=switch_vlan${N}" + append batch "set network.eth0_${id}.device=eth0${N}" + append batch "set network.eth0_${id}.vlan=${id}${N}" + append batch "set network.eth0_${id}.ports='${2}'${N}" ;; esac }