1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2025-04-21 12:27:27 +03:00

[package] adds a --help option to /sbin/wifi

Signed-off-by: Sebastian Philipp <sebastian@spawnhost.de>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24258 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
florian
2010-12-05 11:22:56 +00:00
parent ca6a1266f6
commit 3751e75fb0
2 changed files with 10 additions and 1 deletions

View File

@@ -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