From: Michael Lee Date: Wed, 20 Apr 2016 06:01:21 +0000 (+0800) Subject: ramips: dch-m225 don't have ethernet. default enable wifi X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=0d5277f73fe4071df4273784e3252d520cef8a6e;p=openwrt%2Fstaging%2Fzorun.git ramips: dch-m225 don't have ethernet. default enable wifi Signed-off-by: Michael Lee --- 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