aboutsummaryrefslogtreecommitdiff
path: root/miscutils/rfkill.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2013-11-20 14:20:07 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2013-11-20 14:21:29 +0100
commit2635369a92db338321b2ba38e73539992967357c (patch)
tree74c31a681f0188e8d35396f4e64dec4bfe0943f4 /miscutils/rfkill.c
parent0545e3b69ab57af1c21d199611c56b7f7593c8c5 (diff)
downloadbusybox-2635369a92db338321b2ba38e73539992967357c.tar.gz
rfkill: use new-style config/kbuild/applet
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'miscutils/rfkill.c')
-rw-r--r--miscutils/rfkill.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/miscutils/rfkill.c b/miscutils/rfkill.c
index 467197371..7411b6fc3 100644
--- a/miscutils/rfkill.c
+++ b/miscutils/rfkill.c
@@ -7,6 +7,23 @@
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
+//config:config RFKILL
+//config: bool "rfkill"
+//config: default n # doesn't build on Ubuntu 9.04
+//config: select PLATFORM_LINUX
+//config: help
+//config: Enable/disable wireless devices.
+//config:
+//config: rfkill list : list all wireless devices
+//config: rfkill list bluetooth : list all bluetooth devices
+//config: rfkill list 1 : list device corresponding to the given index
+//config: rfkill block|unblock wlan : block/unblock all wlan(wifi) devices
+//config:
+
+//applet:IF_RFKILL(APPLET(rfkill, BB_DIR_USR_SBIN, BB_SUID_DROP))
+
+//kbuild:lib-$(CONFIG_RFKILL) += rfkill.o
+
//usage:#define rfkill_trivial_usage
//usage: "COMMAND [INDEX|TYPE]"
//usage:#define rfkill_full_usage "\n\n"