From 43afd75ea8de1c891c3c0a520cbb117e3f1ad49e Mon Sep 17 00:00:00 2001 From: Souf Oued Date: Sun, 2 May 2010 18:45:02 +0200 Subject: rfkill: new applet function old new delta rfkill_main - 683 +683 packed_usage 26824 26966 +142 static.rfkill_types - 42 +42 applet_names 2216 2223 +7 applet_main 1300 1304 +4 applet_nameofs 650 652 +2 Signed-off-by: Souf Oued Signed-off-by: Denys Vlasenko --- include/applets.h | 1 + include/usage.h | 12 ++++++++++++ 2 files changed, 13 insertions(+) (limited to 'include') diff --git a/include/applets.h b/include/applets.h index 83c1792ac..ef5dd781d 100644 --- a/include/applets.h +++ b/include/applets.h @@ -321,6 +321,7 @@ IF_RENICE(APPLET(renice, _BB_DIR_USR_BIN, _BB_SUID_DROP)) IF_RESET(APPLET(reset, _BB_DIR_USR_BIN, _BB_SUID_DROP)) IF_RESIZE(APPLET(resize, _BB_DIR_USR_BIN, _BB_SUID_DROP)) IF_RESTORECON(APPLET_ODDNAME(restorecon, setfiles, _BB_DIR_SBIN, _BB_SUID_DROP, restorecon)) +IF_RFKILL(APPLET(rfkill, _BB_DIR_USR_SBIN, _BB_SUID_DROP)) IF_RM(APPLET_NOFORK(rm, rm, _BB_DIR_BIN, _BB_SUID_DROP, rm)) IF_RMDIR(APPLET_NOFORK(rmdir, rmdir, _BB_DIR_BIN, _BB_SUID_DROP, rmdir)) IF_RMMOD(APPLET(rmmod, _BB_DIR_SBIN, _BB_SUID_DROP)) diff --git a/include/usage.h b/include/usage.h index 38594811e..2c2a90d16 100644 --- a/include/usage.h +++ b/include/usage.h @@ -3738,6 +3738,18 @@ "\n for customizable files, or the user section," \ "\n if it has changed" \ +#define rfkill_trivial_usage \ + "COMMAND [INDEX|TYPE]" +#define rfkill_full_usage "\n\n" \ + "Enable/disable wireless devices\n" \ + "\nCommands:" \ + "\n list [INDEX|TYPE] List current state" \ + "\n block INDEX|TYPE Disable device" \ + "\n unblock INDEX|TYPE Enable device" \ + "\n" \ + "\n TYPE: all, wlan(wifi), bluetooth, uwb(ultrawideband)," \ + "\n wimax, wwan, gps, fm" \ + #define rm_trivial_usage \ "[OPTIONS] FILE..." #define rm_full_usage "\n\n" \ -- cgit v1.2.3