+ getline cpuport < "/proc/switch/eth0/cpuport"
+ }
+ if (system("command -v swconfig > /dev/null") == 0) {
+ "swconfig dev switch0 help \| sed -ne \"s\|.*cpu @ \\([0-9]*\\).*\|\\1\|p\"" | getline cpuport
+ }
+ if (cpuport == "8") {
+ c["vlan1ports"]="1 2 3 4 8t"
+ c["vlan2ports"]="0 8t"