aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/base-files
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2009-10-23 16:51:51 +0000
committerJohn Crispin <blogic@openwrt.org>2009-10-23 16:51:51 +0000
commitd363b3d5d7427a143d411936e0c00aebf1413050 (patch)
tree501c324505bf0e66efaa2ff177fd719e53be2540 /target/linux/ramips/base-files
parent19fb687aad3af3666b9b1366902be60e12d1447a (diff)
downloadupstream-d363b3d5d7427a143d411936e0c00aebf1413050.tar.gz
upstream-d363b3d5d7427a143d411936e0c00aebf1413050.tar.bz2
upstream-d363b3d5d7427a143d411936e0c00aebf1413050.zip
[ramips] adds ethernet driver, esw needs to be moved to swconfig, driver is missing rt288x support, not a platform device yet
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18128 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ramips/base-files')
-rwxr-xr-xtarget/linux/ramips/base-files/etc/uci-defaults/network13
1 files changed, 13 insertions, 0 deletions
diff --git a/target/linux/ramips/base-files/etc/uci-defaults/network b/target/linux/ramips/base-files/etc/uci-defaults/network
new file mode 100755
index 0000000000..8d4c6d547d
--- /dev/null
+++ b/target/linux/ramips/base-files/etc/uci-defaults/network
@@ -0,0 +1,13 @@
+#!/bin/sh
+RT305X=`cat /proc/cpuinfo | grep RT305`
+[ -z "${RT305X}" ] || {
+ 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