aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips
diff options
context:
space:
mode:
authorMichael Lee <igvtee@gmail.com>2016-04-20 14:01:21 +0800
committerJohn Crispin <john@phrozen.org>2016-07-24 06:38:30 +0200
commit0d5277f73fe4071df4273784e3252d520cef8a6e (patch)
tree17186fe8e4bd7bcb72ebdfbcb819f99c76f5bf1b /target/linux/ramips
parent104114fe00d453f5346b9a69b776c0be6d594bf3 (diff)
downloadupstream-0d5277f73fe4071df4273784e3252d520cef8a6e.tar.gz
upstream-0d5277f73fe4071df4273784e3252d520cef8a6e.tar.bz2
upstream-0d5277f73fe4071df4273784e3252d520cef8a6e.zip
ramips: dch-m225 don't have ethernet. default enable wifi
Signed-off-by: Michael Lee <igvtee@gmail.com>
Diffstat (limited to 'target/linux/ramips')
-rw-r--r--target/linux/ramips/base-files/etc/uci-defaults/03_wireless21
1 files changed, 21 insertions, 0 deletions
diff --git a/target/linux/ramips/base-files/etc/uci-defaults/03_wireless b/target/linux/ramips/base-files/etc/uci-defaults/03_wireless
new file mode 100644
index 0000000000..bf8c009bcf
--- /dev/null
+++ b/target/linux/ramips/base-files/etc/uci-defaults/03_wireless
@@ -0,0 +1,21 @@
+#!/bin/sh
+#
+# Copyright (C) 2016 OpenWrt.org
+#
+
+[ ! -e /etc/config/wireless ] && exit 0
+
+. /lib/functions/system.sh
+. /lib/ramips.sh
+
+board=$(ramips_board_name)
+
+case "$board" in
+dch-m225)
+ uci set wireless.@wifi-device[0].disabled=0
+ ;;
+esac
+
+uci commit wireless
+
+exit 0