summaryrefslogtreecommitdiffstats
path: root/sys-utils/rfkill.8
diff options
context:
space:
mode:
authorSami Kerola2017-09-11 21:55:57 +0200
committerKarel Zak2017-09-15 12:24:31 +0200
commit4f892d77d5c960431e0b3f08e469d82ec55da0d8 (patch)
tree869b5b2190b0d5324a404478337a6716a77fc900 /sys-utils/rfkill.8
parentscript: support sig{stop/cont} (diff)
downloadkernel-qcow2-util-linux-4f892d77d5c960431e0b3f08e469d82ec55da0d8.tar.gz
kernel-qcow2-util-linux-4f892d77d5c960431e0b3f08e469d82ec55da0d8.tar.xz
kernel-qcow2-util-linux-4f892d77d5c960431e0b3f08e469d82ec55da0d8.zip
rfkill: allow use of multiple arguments
There is no reason why multiple arguments could not be supported. Most common use case is to do multiple control commands in one go without us of 'all' argument that can cause unnecessary connection breakage. For example someone might want to add to a system initialization following commands. rfkill block bluetooth uwb wimax wwan gps fm nfc That will ensure everything but wifi is turned off with as few commands as possible, without killing wifi at any point. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'sys-utils/rfkill.8')
-rw-r--r--sys-utils/rfkill.818
1 files changed, 11 insertions, 7 deletions
diff --git a/sys-utils/rfkill.8 b/sys-utils/rfkill.8
index f6ecc1e48..ce0aadc31 100644
--- a/sys-utils/rfkill.8
+++ b/sys-utils/rfkill.8
@@ -4,7 +4,7 @@
rfkill \- tool for enabling and disabling wireless devices
.SH SYNOPSIS
.B rfkill
-.RI [ options ] " command" " [" id | type ]
+.RI [ options ] " command" " [" id | type \ ...]
.SH OPTIONS
.TP
\fB\-J\fR, \fB\-\-json\fR
@@ -33,23 +33,25 @@ Display help text and exit.
.B event
Listen for rfkill events and display them on stdout.
.TP
-\fBlist \fR[\fIid\fR|\fItype\fR]
+\fBlist \fR[\fIid\fR|\fItype\fR ...]
List the current state of all available devices. The full list has TYPE and
ID columns that one can use to limit the scope. It is a good idea to check
with
.B list
command
-.BR id " or " type
+.IR id " or " type
scope is appropriate before setting
.BR block " or " unblock .
Special
-.B all
-type string will match everything.
+.I all
+type string will match everything. Use of multiple
+.IR id " or " type
+arguments is supported.
.TP
-\fBblock \fBid\fR|\fBtype\fR
+\fBblock \fBid\fR|\fBtype\fR [...]
Disable the corresponding device.
.TP
-\fBunblock \fBid\fR|\fBtype\fR
+\fBunblock \fBid\fR|\fBtype\fR [...]
Enable the corresponding device. If the device is hard\-blocked, for example
via a hardware switch, it will remain unavailable though it is now
soft\-unblocked.
@@ -59,6 +61,8 @@ rfkill list
rfkill block all
.br
rfkill unblock wlan
+.br
+rfkill block bluetooth uwb wimax wwan gps fm nfc
.SH AUTHORS
.B rfkill
was originally written by