mirror of https://github.com/hak5/openwrt-owl.git
adds a --help option to /sbin/wifi
Signed-off-by: Sebastian Philipp <sebastian@spawnhost.de> SVN-Revision: 24258owl
parent
c10515db65
commit
ebe7bdba88
|
@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
|
||||||
include $(INCLUDE_DIR)/kernel.mk
|
include $(INCLUDE_DIR)/kernel.mk
|
||||||
|
|
||||||
PKG_NAME:=base-files
|
PKG_NAME:=base-files
|
||||||
PKG_RELEASE:=61
|
PKG_RELEASE:=62
|
||||||
|
|
||||||
PKG_FILE_DEPENDS:=$(PLATFORM_DIR)/ $(GENERIC_PLATFORM_DIR)/base-files/
|
PKG_FILE_DEPENDS:=$(PLATFORM_DIR)/ $(GENERIC_PLATFORM_DIR)/base-files/
|
||||||
PKG_BUILD_DEPENDS:=opkg/host
|
PKG_BUILD_DEPENDS:=opkg/host
|
||||||
|
|
|
@ -3,6 +3,14 @@
|
||||||
|
|
||||||
. /etc/functions.sh
|
. /etc/functions.sh
|
||||||
|
|
||||||
|
usage() {
|
||||||
|
cat <<EOF
|
||||||
|
Usage: $0 [down|detect]
|
||||||
|
enables (default), disables or detects a wifi configuration.
|
||||||
|
EOF
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
find_net_config() {(
|
find_net_config() {(
|
||||||
local vif="$1"
|
local vif="$1"
|
||||||
local cfg
|
local cfg
|
||||||
|
@ -183,5 +191,6 @@ scan_wifi
|
||||||
case "$1" in
|
case "$1" in
|
||||||
down) wifi_updown "disable" "$2";;
|
down) wifi_updown "disable" "$2";;
|
||||||
detect) wifi_detect "$2";;
|
detect) wifi_detect "$2";;
|
||||||
|
--help|help) usage;;
|
||||||
*) wifi_updown "enable" "$2";;
|
*) wifi_updown "enable" "$2";;
|
||||||
esac
|
esac
|
||||||
|
|
Loading…
Reference in New Issue