diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2011-12-01 22:48:51 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2011-12-01 22:48:51 +0000 |
commit | 80221fcd2a66e6a1a4ebd79d98ae881a549fc521 (patch) | |
tree | ab5a5da1c0faf84a65c1b3c22983a36f353995b0 /target/linux/ramips/base-files | |
parent | 4f6c58adac8422300040b7bc9e64f94a70e37946 (diff) | |
download | mtk-20170518-80221fcd2a66e6a1a4ebd79d98ae881a549fc521.zip mtk-20170518-80221fcd2a66e6a1a4ebd79d98ae881a549fc521.tar.gz mtk-20170518-80221fcd2a66e6a1a4ebd79d98ae881a549fc521.tar.bz2 |
ramips: remove default network configuration, and generate that from uci-defaults
SVN-Revision: 29387
Diffstat (limited to 'target/linux/ramips/base-files')
-rwxr-xr-x | target/linux/ramips/base-files/etc/uci-defaults/network | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/target/linux/ramips/base-files/etc/uci-defaults/network b/target/linux/ramips/base-files/etc/uci-defaults/network index 7cb6b83..a00e162 100755 --- a/target/linux/ramips/base-files/etc/uci-defaults/network +++ b/target/linux/ramips/base-files/etc/uci-defaults/network @@ -58,8 +58,11 @@ ramips_setup_interfaces() *) RT3X5X=`cat /proc/cpuinfo | grep RT3.5` - [ -z "${RT3X5X}" ] || \ + if [ -n "${RT3X5X}" ]; then ucidef_set_interfaces_lan_wan "eth0.1 eth0.2" + else + ucidef_set_interfaces_lan_wan "eth0 eth1" + fi ;; esac } @@ -88,6 +91,10 @@ ramips_setup_macs() [ -n $wan_mac ] && ucidef_set_interface_macaddr wan $wan_mac } +[ -e /etc/config/network ] && exit 0 + +touch /etc/config/network + board=$(ramips_board_name) ramips_setup_interfaces $board |