Adds a --help option to /sbin/wifi. I didn't know how to use /sbin/wifi
Signed-off-by: Sebastian Philipp <[email protected]>
---
Index: base-files/files/sbin/wifi
===================================================================
--- base-files/files/sbin/wifi (Revision 23371)
+++ base-files/files/sbin/wifi (Arbeitskopie)
@@ -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 @@
case "$1" in
down) wifi_updown "disable" "$2";;
detect) wifi_detect "$2";;
+ --help|help) usage;;
*) wifi_updown "enable" "$2";;
esac
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel