From 4f892d77d5c960431e0b3f08e469d82ec55da0d8 Mon Sep 17 00:00:00 2001 From: Sami Kerola Date: Mon, 11 Sep 2017 20:55:57 +0100 Subject: 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 --- sys-utils/rfkill.8 | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'sys-utils/rfkill.8') 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 -- cgit v1.2.3-55-g7522