mirror of
https://github.com/openwrt/openwrt.git
synced 2025-02-23 10:20:46 +00:00
ramips: dch-m225 don't have ethernet. default enable wifi
Signed-off-by: Michael Lee <igvtee@gmail.com>
This commit is contained in:
parent
104114fe00
commit
0d5277f73f
21
target/linux/ramips/base-files/etc/uci-defaults/03_wireless
Normal file
21
target/linux/ramips/base-files/etc/uci-defaults/03_wireless
Normal file
@ -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
|
Loading…
x
Reference in New Issue
Block a user