[PATCH] add rfkill applet

Souf Oued souf_oued at yahoo.fr
Sun Mar 28 20:27:02 UTC 2010


Hi,
this patch adds new applet: rfkill
usage:
rfkill [-l|-b|-u]
rfkill -l : list all wireless devices.
rfkill -l wlan : list all wlan devices, we can use wifi as alias.
rfkill -l 1 : list device corresponding to the given index.
rfkill -b|-u bluetooth : block/unblock all bluetooth devices.
rfkill -b|-u 0 : block/unblock device corresponding to the given index.

accepted types : all, wlan(wifi), bluetooth, uwb(ultrawideband), wimax, 
wwan, gps, fm

scripts/bloat-o-meter busybox_unstripped ../comp/busybox_unstripped
function                                             old     new   delta
rfkill_main                                            -     646    +646
.rodata                                            48042   48395    +353
packed_usage                                       12026   12168    +142
static.rfkill_types                                    -      42     +42
applet_names                                        1083    1090      +7
applet_main                                          664     668      +4
applet_nameofs                                       332     334      +2
applet_install_loc                                    83      84      +1
------------------------------------------------------------------------------
(add/remove: 3/0 grow/shrink: 6/0 up/down: 1197/0)     Total: 1197 bytes

Best regards
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rfkill.patch
Type: text/x-patch
Size: 5878 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20100328/a6baaced/attachment.bin>


More information about the busybox mailing list