diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2013-11-20 14:20:07 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2013-11-20 14:21:29 +0100 |
commit | 2635369a92db338321b2ba38e73539992967357c (patch) | |
tree | 74c31a681f0188e8d35396f4e64dec4bfe0943f4 | |
parent | 0545e3b69ab57af1c21d199611c56b7f7593c8c5 (diff) | |
download | busybox-w32-2635369a92db338321b2ba38e73539992967357c.tar.gz busybox-w32-2635369a92db338321b2ba38e73539992967357c.tar.bz2 busybox-w32-2635369a92db338321b2ba38e73539992967357c.zip |
rfkill: use new-style config/kbuild/applet
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | include/applets.src.h | 1 | ||||
-rw-r--r-- | miscutils/Config.src | 12 | ||||
-rw-r--r-- | miscutils/Kbuild.src | 1 | ||||
-rw-r--r-- | miscutils/rfkill.c | 17 |
4 files changed, 17 insertions, 14 deletions
diff --git a/include/applets.src.h b/include/applets.src.h index 2ceba53bd..7dbd4c7f3 100644 --- a/include/applets.src.h +++ b/include/applets.src.h | |||
@@ -288,7 +288,6 @@ IF_RENICE(APPLET(renice, BB_DIR_USR_BIN, BB_SUID_DROP)) | |||
288 | IF_RESET(APPLET(reset, BB_DIR_USR_BIN, BB_SUID_DROP)) | 288 | IF_RESET(APPLET(reset, BB_DIR_USR_BIN, BB_SUID_DROP)) |
289 | IF_RESIZE(APPLET(resize, BB_DIR_USR_BIN, BB_SUID_DROP)) | 289 | IF_RESIZE(APPLET(resize, BB_DIR_USR_BIN, BB_SUID_DROP)) |
290 | IF_RESTORECON(APPLET_ODDNAME(restorecon, setfiles, BB_DIR_SBIN, BB_SUID_DROP, restorecon)) | 290 | IF_RESTORECON(APPLET_ODDNAME(restorecon, setfiles, BB_DIR_SBIN, BB_SUID_DROP, restorecon)) |
291 | IF_RFKILL(APPLET(rfkill, BB_DIR_USR_SBIN, BB_SUID_DROP)) | ||
292 | IF_RM(APPLET_NOFORK(rm, rm, BB_DIR_BIN, BB_SUID_DROP, rm)) | 291 | IF_RM(APPLET_NOFORK(rm, rm, BB_DIR_BIN, BB_SUID_DROP, rm)) |
293 | IF_RMDIR(APPLET_NOFORK(rmdir, rmdir, BB_DIR_BIN, BB_SUID_DROP, rmdir)) | 292 | IF_RMDIR(APPLET_NOFORK(rmdir, rmdir, BB_DIR_BIN, BB_SUID_DROP, rmdir)) |
294 | IF_ROUTE(APPLET(route, BB_DIR_SBIN, BB_SUID_DROP)) | 293 | IF_ROUTE(APPLET(route, BB_DIR_SBIN, BB_SUID_DROP)) |
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 | |||
503 | As readahead(2) blocks until each file has been read, it is best to | 503 | As readahead(2) blocks until each file has been read, it is best to |
504 | run this applet as a background job. | 504 | run this applet as a background job. |
505 | 505 | ||
506 | config RFKILL | ||
507 | bool "rfkill" | ||
508 | default n # doesn't build on Ubuntu 9.04 | ||
509 | select PLATFORM_LINUX | ||
510 | help | ||
511 | Enable/disable wireless devices. | ||
512 | |||
513 | rfkill list : list all wireless devices | ||
514 | rfkill list bluetooth : list all bluetooth devices | ||
515 | rfkill list 1 : list device corresponding to the given index | ||
516 | rfkill block|unblock wlan : block/unblock all wlan(wifi) devices | ||
517 | |||
518 | config RUNLEVEL | 506 | config RUNLEVEL |
519 | bool "runlevel" | 507 | bool "runlevel" |
520 | default y | 508 | 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 | |||
36 | lib-$(CONFIG_MT) += mt.o | 36 | lib-$(CONFIG_MT) += mt.o |
37 | lib-$(CONFIG_RAIDAUTORUN) += raidautorun.o | 37 | lib-$(CONFIG_RAIDAUTORUN) += raidautorun.o |
38 | lib-$(CONFIG_READAHEAD) += readahead.o | 38 | lib-$(CONFIG_READAHEAD) += readahead.o |
39 | lib-$(CONFIG_RFKILL) += rfkill.o | ||
40 | lib-$(CONFIG_RUNLEVEL) += runlevel.o | 39 | lib-$(CONFIG_RUNLEVEL) += runlevel.o |
41 | lib-$(CONFIG_RX) += rx.o | 40 | lib-$(CONFIG_RX) += rx.o |
42 | lib-$(CONFIG_SETSID) += setsid.o | 41 | 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 @@ | |||
7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
8 | */ | 8 | */ |
9 | 9 | ||
10 | //config:config RFKILL | ||
11 | //config: bool "rfkill" | ||
12 | //config: default n # doesn't build on Ubuntu 9.04 | ||
13 | //config: select PLATFORM_LINUX | ||
14 | //config: help | ||
15 | //config: Enable/disable wireless devices. | ||
16 | //config: | ||
17 | //config: rfkill list : list all wireless devices | ||
18 | //config: rfkill list bluetooth : list all bluetooth devices | ||
19 | //config: rfkill list 1 : list device corresponding to the given index | ||
20 | //config: rfkill block|unblock wlan : block/unblock all wlan(wifi) devices | ||
21 | //config: | ||
22 | |||
23 | //applet:IF_RFKILL(APPLET(rfkill, BB_DIR_USR_SBIN, BB_SUID_DROP)) | ||
24 | |||
25 | //kbuild:lib-$(CONFIG_RFKILL) += rfkill.o | ||
26 | |||
10 | //usage:#define rfkill_trivial_usage | 27 | //usage:#define rfkill_trivial_usage |
11 | //usage: "COMMAND [INDEX|TYPE]" | 28 | //usage: "COMMAND [INDEX|TYPE]" |
12 | //usage:#define rfkill_full_usage "\n\n" | 29 | //usage:#define rfkill_full_usage "\n\n" |