diff options
author | Florian Fainelli <florian@openwrt.org> | 2010-12-05 11:22:56 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2010-12-05 11:22:56 +0000 |
commit | ebe7bdba8873f5d0abce9b9890493fddffc71470 (patch) | |
tree | e4644d3a14ddd6522266983174dfae4316163027 /package/base-files/files | |
parent | c10515db657c15f268f558626df4d594e37ee6d8 (diff) | |
download | master-31e0f0ae-ebe7bdba8873f5d0abce9b9890493fddffc71470.tar.gz master-31e0f0ae-ebe7bdba8873f5d0abce9b9890493fddffc71470.tar.bz2 master-31e0f0ae-ebe7bdba8873f5d0abce9b9890493fddffc71470.zip |
adds a --help option to /sbin/wifi
Signed-off-by: Sebastian Philipp <sebastian@spawnhost.de>
SVN-Revision: 24258
Diffstat (limited to 'package/base-files/files')
-rwxr-xr-x | package/base-files/files/sbin/wifi | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/package/base-files/files/sbin/wifi b/package/base-files/files/sbin/wifi index bee6c28352..e2dd0a32d5 100755 --- a/package/base-files/files/sbin/wifi +++ b/package/base-files/files/sbin/wifi @@ -3,6 +3,14 @@ . /etc/functions.sh +usage() { + cat <<EOF +Usage: $0 [down|detect] +enables (default), disables or detects a wifi configuration. +EOF + exit 1 +} + find_net_config() {( local vif="$1" local cfg @@ -183,5 +191,6 @@ scan_wifi case "$1" in down) wifi_updown "disable" "$2";; detect) wifi_detect "$2";; + --help|help) usage;; *) wifi_updown "enable" "$2";; esac |