Author: blogic Date: 2015-11-02 11:18:02 +0100 (Mon, 02 Nov 2015) New Revision: 47349
Modified: trunk/target/linux/ramips/base-files/lib/preinit/07_set_preinit_iface_ramips Log: 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 <[email protected]> Modified: trunk/target/linux/ramips/base-files/lib/preinit/07_set_preinit_iface_ramips =================================================================== --- trunk/target/linux/ramips/base-files/lib/preinit/07_set_preinit_iface_ramips 2015-11-02 10:17:51 UTC (rev 47348) +++ trunk/target/linux/ramips/base-files/lib/preinit/07_set_preinit_iface_ramips 2015-11-02 10:18:02 UTC (rev 47349) @@ -23,8 +23,8 @@ 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 _______________________________________________ openwrt-commits mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits
