diff options
Diffstat (limited to 'miscutils')
-rw-r--r-- | miscutils/Config.src | 12 | ||||
-rw-r--r-- | miscutils/Kbuild.src | 1 | ||||
-rw-r--r-- | miscutils/rfkill.c | 17 |
3 files changed, 17 insertions, 13 deletions
diff --git a/miscutils/Config.src b/miscutils/Config.src index 117ec7739..1da9800bd 100644 --- a/miscutils/Config.src +++ b/miscutils/Config.src @@ -503,18 +503,6 @@ config READAHEAD As readahead(2) blocks until each file has been read, it is best to run this applet as a background job. -config RFKILL - bool "rfkill" - default n # doesn't build on Ubuntu 9.04 - select PLATFORM_LINUX - help - Enable/disable wireless devices. - - rfkill list : list all wireless devices - rfkill list bluetooth : list all bluetooth devices - rfkill list 1 : list device corresponding to the given index - rfkill block|unblock wlan : block/unblock all wlan(wifi) devices - config RUNLEVEL bool "runlevel" default y diff --git a/miscutils/Kbuild.src b/miscutils/Kbuild.src index f3954f407..9e164f16e 100644 --- a/miscutils/Kbuild.src +++ b/miscutils/Kbuild.src @@ -36,7 +36,6 @@ lib-$(CONFIG_MOUNTPOINT) += mountpoint.o lib-$(CONFIG_MT) += mt.o lib-$(CONFIG_RAIDAUTORUN) += raidautorun.o lib-$(CONFIG_READAHEAD) += readahead.o -lib-$(CONFIG_RFKILL) += rfkill.o lib-$(CONFIG_RUNLEVEL) += runlevel.o lib-$(CONFIG_RX) += rx.o lib-$(CONFIG_SETSID) += setsid.o 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" |