]> git.ipfire.org Git - thirdparty/util-linux.git/commit
rfkill: stop execution when rfkill device cannot be opened
authorSami Kerola <kerolasa@iki.fi>
Fri, 23 Oct 2020 19:39:24 +0000 (20:39 +0100)
committerSami Kerola <kerolasa@iki.fi>
Sat, 14 Nov 2020 15:22:34 +0000 (15:22 +0000)
commit06229abccf69cfc01d2ba05331832850130ee75b
treef34de0dd14ee474f2d654c4d228871829384b0a2
parenta371c3f71e5ab4fcaab52bd7a02f00539cf56e40
rfkill: stop execution when rfkill device cannot be opened

Without this two error messages are printed when rfkill device
cannot be opened.

    $ rfkill
    rfkill: cannot open /dev/rfkill: No such file or directory
    rfkill: cannot read /dev/rfkill: Bad file descriptor

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
sys-utils/rfkill.c