source: trunk/target/linux/ramips/base-files/etc/uci-defaults/network @ 27804

Last change on this file since 27804 was 27804, checked in by juhosg, 5 years ago

ramips: rt305x: fix uci-defaults/network script for the RT3350 based boards

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@…>

  • Property svn:executable set to *
File size: 245 bytes
Line 
1#!/bin/sh
2RT3X5X=`cat /proc/cpuinfo | grep RT3.5`
3[ -z "${RT3X5X}" ] || {
4        uci batch <<EOF
5set network.lan.ifname=eth0.1
6set network.wan=interface
7set network.wan.ifname=eth0.2
8set network.wan.proto=dhcp
9commit network
10EOF
11}
12
13uci commit network
Note: See TracBrowser for help on using the repository browser.