[source] ramips: dch-m225 don't have ethernet. default enable wifi
LEDE Commits
lede-commits at lists.infradead.org
Wed Jul 27 22:19:27 PDT 2016
blogic pushed a commit to source.git, branch master:
https://git.lede-project.org/?p=source.git;a=commitdiff;h=0d5277f73fe4071df4273784e3252d520cef8a6e
commit 0d5277f73fe4071df4273784e3252d520cef8a6e
Author: Michael Lee <igvtee at gmail.com>
AuthorDate: Wed Apr 20 14:01:21 2016 +0800
ramips: dch-m225 don't have ethernet. default enable wifi
Signed-off-by: Michael Lee <igvtee at gmail.com>
---
.../ramips/base-files/etc/uci-defaults/03_wireless | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
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 0000000..bf8c009
--- /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. at wifi-device[0].disabled=0
+ ;;
+esac
+
+uci commit wireless
+
+exit 0
More information about the lede-commits
mailing list