diff options
author | John Crispin <blogic@openwrt.org> | 2009-10-23 16:51:51 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2009-10-23 16:51:51 +0000 |
commit | d363b3d5d7427a143d411936e0c00aebf1413050 (patch) | |
tree | 501c324505bf0e66efaa2ff177fd719e53be2540 /target/linux/ramips/base-files | |
parent | 19fb687aad3af3666b9b1366902be60e12d1447a (diff) | |
download | upstream-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-x | target/linux/ramips/base-files/etc/uci-defaults/network | 13 |
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 |