diff options
author | Luka Perkov <luka@openwrt.org> | 2013-11-05 08:00:34 +0000 |
---|---|---|
committer | Luka Perkov <luka@openwrt.org> | 2013-11-05 08:00:34 +0000 |
commit | cb07269988cd3be7cbbd3278081c5688ae8d7616 (patch) | |
tree | 140051364b271b5d49c01c572e3e534f7e0d0842 /target/linux/sunxi/base-files/etc/uci-defaults | |
parent | da224973af13644fb0b76d9422234a1f89e53134 (diff) | |
download | mtk-20170518-cb07269988cd3be7cbbd3278081c5688ae8d7616.zip mtk-20170518-cb07269988cd3be7cbbd3278081c5688ae8d7616.tar.gz mtk-20170518-cb07269988cd3be7cbbd3278081c5688ae8d7616.tar.bz2 |
sunxi: add new target
Signed-off-by: Luka Perkov <luka@openwrt.org>
SVN-Revision: 38651
Diffstat (limited to 'target/linux/sunxi/base-files/etc/uci-defaults')
-rw-r--r-- | target/linux/sunxi/base-files/etc/uci-defaults/02_network | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/target/linux/sunxi/base-files/etc/uci-defaults/02_network b/target/linux/sunxi/base-files/etc/uci-defaults/02_network new file mode 100644 index 0000000..48781e5 --- /dev/null +++ b/target/linux/sunxi/base-files/etc/uci-defaults/02_network @@ -0,0 +1,22 @@ +#!/bin/sh +# +# Copyright (C) 2013 OpenWrt.org +# + +[ -e /etc/config/network ] && exit 0 + +touch /etc/config/network + +. /lib/functions/uci-defaults.sh + +ucidef_set_interface_loopback + +case "`cat /proc/device-tree/model`" in +"Cubietech Cubieboard") + ucidef_set_interface_wan 'eth0' + ;; +esac + +uci commit network + +exit 0 |