diff options
author | luka <luka@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2013-11-05 08:00:34 +0000 |
---|---|---|
committer | luka <luka@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2013-11-05 08:00:34 +0000 |
commit | ad2ef19154ff4c0e3546a1be36b6a802467edbb2 (patch) | |
tree | 1c7f2764ec5c47e1a573ffbbd52f9332c0ae4574 /target/linux/sunxi/base-files | |
parent | e8c3136229ac3867d7fbcc307002166404fa84b3 (diff) |
sunxi: add new target
Signed-off-by: Luka Perkov <luka@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38651 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/sunxi/base-files')
-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 0000000000..48781e5e00 --- /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 |