aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/base-files/etc
diff options
context:
space:
mode:
authorMathias Kresin <dev@kresin.me>2016-09-26 20:56:13 +0200
committerMathias Kresin <dev@kresin.me>2016-10-15 09:01:45 +0200
commitbcfbeae79f799cf1087d692e4869589eb20d2080 (patch)
treee548154a45a94b8599cb0cadbb45af6d2921d26b /target/linux/ramips/base-files/etc
parent0a219c8dfb02ce8e0862bff118739d1158585c32 (diff)
downloadupstream-bcfbeae79f799cf1087d692e4869589eb20d2080.tar.gz
upstream-bcfbeae79f799cf1087d692e4869589eb20d2080.tar.bz2
upstream-bcfbeae79f799cf1087d692e4869589eb20d2080.zip
ramips: use rfkill for wps button on wlan only boards
All of the touched boards don't have an ethernet port. Allow to use the wps button on these boards to enable the wireless radio after boot. The force enabled wireless for the DCH-M225 is removed. It is reckless to bring up an unencrypted wireless network by default these days. Using the wps button to bring up the radio seam to me the better approach. Signed-off-by: Mathias Kresin <dev@kresin.me>
Diffstat (limited to 'target/linux/ramips/base-files/etc')
-rw-r--r--target/linux/ramips/base-files/etc/uci-defaults/03_wireless21
1 files changed, 0 insertions, 21 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
deleted file mode 100644
index bf8c009bcf..0000000000
--- a/target/linux/ramips/base-files/etc/uci-defaults/03_wireless
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/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