aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/base-files
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2015-11-02 10:18:02 +0000
committerJohn Crispin <blogic@openwrt.org>2015-11-02 10:18:02 +0000
commit1c958c18cb17748a76073d1389869fe9d35e176b (patch)
treee2a29c38d58845c6252cc23656a8b0db7bf7c9f5 /target/linux/ramips/base-files
parent3241a82764b34e3cc08cbe7526c905d6747ea651 (diff)
downloadmaster-187ad058-1c958c18cb17748a76073d1389869fe9d35e176b.tar.gz
master-187ad058-1c958c18cb17748a76073d1389869fe9d35e176b.tar.bz2
master-187ad058-1c958c18cb17748a76073d1389869fe9d35e176b.zip
ramips: preinit: use iproute2 instead of vconfig
Replace use of vconfig with the corresponding iproute2 syntax in /lib/preinit/07_set_preinit_iface_ramips The switch reset work-around needed on some ramips targets used the deprecated vconfig tool to bring up the pre-init/failsafe interface. This doesn't work on recent builds where vconfig is no longer being deployed, resulting in the device being unreachable when triggered into failsafe mode. Signed-off-by: Daniel Golle <daniel@makrotopia.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47349 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ramips/base-files')
-rw-r--r--target/linux/ramips/base-files/lib/preinit/07_set_preinit_iface_ramips4
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/ramips/base-files/lib/preinit/07_set_preinit_iface_ramips b/target/linux/ramips/base-files/lib/preinit/07_set_preinit_iface_ramips
index 90b6d15057..3dce1b667b 100644
--- a/target/linux/ramips/base-files/lib/preinit/07_set_preinit_iface_ramips
+++ b/target/linux/ramips/base-files/lib/preinit/07_set_preinit_iface_ramips
@@ -23,8 +23,8 @@ ramips_set_preinit_iface() {
swconfig dev rt305x vlan 1 set ports "0 6"
swconfig dev rt305x port 6 set untag 0
swconfig dev rt305x set apply 1
- vconfig add eth0 1
- ifconfig eth0 up
+ ip link add link eth0 name eth0.1 type vlan id 1
+ ip link set eth0 up
ifname=eth0.1
else
ifname=eth0