create_ap

create a nat-ed wifi ap
git clone git://git.2f30.org/create_ap.git
Log | Files | Refs | LICENSE

commit d55adb7d501a8b5b23b8653c2ac657837f19c4ee
parent 04fa4860d11bee53fa4ce185a3bcff5d75ba6bbf
Author: oblique <psyberbits@gmail.com>
Date:   Fri Mar 13 19:55:20 +0200

Add version number, v0.1

Diffstat:
create_ap | 8+++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/create_ap b/create_ap @@ -13,6 +13,7 @@ # dnsmasq # iptables +VERSION=0.1 # make sure that all command outputs are in english # so we can parse them correctly @@ -23,6 +24,7 @@ usage() { echo echo "Options:" echo " -h, --help Show this help" + echo " --version Print version number" echo " -c <channel> Channel number (default: 1)" echo " -w <WPA version> Use 1 for WPA, use 2 for WPA2, use 1+2 for both (default: 1+2)" echo " -n Disable Internet sharing (if you use this, don't pass" @@ -572,7 +574,7 @@ trap "clean_exit" SIGINT trap "clean_exit" SIGUSR1 ARGS=( "$@" ) -GETOPT_ARGS=$(getopt -o hc:w:g:dnm: -l "help","hidden","ieee80211n","ht_capab:","driver:","no-virt","fix-unmanaged","country:","freq-band:","mac:","daemon","stop:","list" -n $(basename $0) -- "$@") +GETOPT_ARGS=$(getopt -o hc:w:g:dnm: -l "help","hidden","ieee80211n","ht_capab:","driver:","no-virt","fix-unmanaged","country:","freq-band:","mac:","daemon","stop:","list","version" -n $(basename $0) -- "$@") [[ $? -ne 0 ]] && exit 1 eval set -- "$GETOPT_ARGS" @@ -582,6 +584,10 @@ while :; do usage >&2 exit 1 ;; + --version) + echo $VERSION + exit 0 + ;; --hidden) shift HIDDEN=1