mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-01 11:54:04 +02:00
4a7f515821
This change corrects expected CPU name of Ralink RT3050, which describes itself as RT3350 (this name is ripped off chip and elevated to user space via /proc/cpuinfo.) This patch fixes wired network on DIR-300 rev B and DIR-600 rev B Signed-off-by: Slawomir Cygan <wiewior@wiewior.eu.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27804 3c298f89-4303-0410-b956-a3cf2f4a3e73
14 lines
245 B
Bash
Executable File
14 lines
245 B
Bash
Executable File
#!/bin/sh
|
|
RT3X5X=`cat /proc/cpuinfo | grep RT3.5`
|
|
[ -z "${RT3X5X}" ] || {
|
|
uci batch <<EOF
|
|
set network.lan.ifname=eth0.1
|
|
set network.wan=interface
|
|
set network.wan.ifname=eth0.2
|
|
set network.wan.proto=dhcp
|
|
commit network
|
|
EOF
|
|
}
|
|
|
|
uci commit network
|