Il 10.03.2015 14:18 John Crispin ha scritto:
hi

can you send a version that has the pattern shown below please

and "0 1 2 3 4 5 6" is wrong, exclude the wan port from the list please.

        John



The problem is that it's not easy to determine what number the LAN or WAN port(s) is/are. 
On many routers a LAN port can be 0, but on the HT-TM02 there is only one port and it is 
4. So the current "0 6" is effectively soft-bricking the HT-TM02 if failsafe is 
needed and one doesn't have a serial adapter... That's why I proposed to just enable all 
ports for failsafe.

board=$(ramips_board_name)

board_config_update
ports="0 6""
case $board in
my_board_name)
        ports="0 1 2 3 4 5 6"
        ;;
esac
swconfig dev rt305x set enable_vlan 1
swconfig dev rt305x vlan 1 set ports "$ports"
swconfig dev rt305x port 6 set untag 0
swconfig dev rt305x set apply 1
vconfig add eth0 1

This needs to be better addressed somehow, without replicating the port layout 
here for every router that does not have port 0 exposed at all.
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to