base-files: make wifi report unknown command
authorThibaut VARÈNE <hacks@slashdirt.org>
Thu, 9 Aug 2018 18:33:45 +0000 (20:33 +0200)
committerJohn Crispin <john@phrozen.org>
Fri, 10 Aug 2018 03:30:57 +0000 (05:30 +0200)
commit78b5764fd8a3c133f0caf170238242b32a97105b
tree1cded53e0d4fb4899a796d079118029678d074e9
parentc4931713df8ffb3c4e5c1be7d0b6d4aa96a7dd4c
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>
package/base-files/files/sbin/wifi