ramips: dch-m225 don't have ethernet. default enable wifi
authorMichael Lee <igvtee@gmail.com>
Wed, 20 Apr 2016 06:01:21 +0000 (14:01 +0800)
committerJohn Crispin <john@phrozen.org>
Sun, 24 Jul 2016 04:38:30 +0000 (06:38 +0200)
Signed-off-by: Michael Lee <igvtee@gmail.com>
target/linux/ramips/base-files/etc/uci-defaults/03_wireless [new file with mode: 0644]

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 (file)
index 0000000..bf8c009
--- /dev/null
@@ -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