From bcfbeae79f799cf1087d692e4869589eb20d2080 Mon Sep 17 00:00:00 2001 From: Mathias Kresin Date: Mon, 26 Sep 2016 20:56:13 +0200 Subject: 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 --- .../ramips/base-files/etc/uci-defaults/03_wireless | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 target/linux/ramips/base-files/etc/uci-defaults/03_wireless (limited to 'target/linux/ramips/base-files') 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 bf8c009..0000000 --- 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 -- cgit v1.1