base-files: make wifi report unknown command
authorThibaut VARÈNE <hacks@slashdirt.org>
Thu, 9 Aug 2018 18:33:45 +0000 (20:33 +0200)
committerJo-Philipp Wich <jo@mein.io>
Tue, 18 Dec 2018 10:01:56 +0000 (11:01 +0100)
commita2b2a9c55fd9a4fa7e211dae35d3951cdcc2bafc
tree298fb27963f8c25f75b5c6fa06c3e9fc41e60f9f
parent7a52e0a7ab0847002c6f1e6d02083739ef641ab4
base-files: make wifi report unknown command

Avoid having /sbin/wifi silently ignore unknown keywords and execute
"up"; instead display the help message and exit with an error.

Spell out the "up" keyword (which has users), add it to usage output,
and preserve the implicit assumption that runing /sbin/wifi without
argument performs "up".

Signed-off-by: Thibaut VARÈNE <hacks@slashdirt.org>
(backported from 78b5764fd8a3c133f0caf170238242b32a97105b)
package/base-files/files/sbin/wifi