mirror of
https://github.com/lakinduakash/linux-wifi-hotspot.git
synced 2024-11-21 19:40:11 +00:00
Add --hostapd-timestamps options to create_ap
This commit is contained in:
parent
d4de517ade
commit
bae89dae0f
@ -46,6 +46,7 @@ usage() {
|
|||||||
echo " --mac-filter-accept Location of MAC address filter list (defaults to /etc/hostapd/hostapd.accept)"
|
echo " --mac-filter-accept Location of MAC address filter list (defaults to /etc/hostapd/hostapd.accept)"
|
||||||
echo " --redirect-to-localhost If -n is set, redirect every web request to localhost (useful for public information networks)"
|
echo " --redirect-to-localhost If -n is set, redirect every web request to localhost (useful for public information networks)"
|
||||||
echo " --hostapd-debug <level> With level between 1 and 2, passes arguments -d or -dd to hostapd for debugging."
|
echo " --hostapd-debug <level> With level between 1 and 2, passes arguments -d or -dd to hostapd for debugging."
|
||||||
|
echo " --hostapd-timestamps Include timestamps in hostapd debug messages."
|
||||||
echo " --isolate-clients Disable communication between clients"
|
echo " --isolate-clients Disable communication between clients"
|
||||||
echo " --ieee80211n Enable IEEE 802.11n (HT)"
|
echo " --ieee80211n Enable IEEE 802.11n (HT)"
|
||||||
echo " --ieee80211ac Enable IEEE 802.11ac (VHT)"
|
echo " --ieee80211ac Enable IEEE 802.11ac (VHT)"
|
||||||
@ -1054,7 +1055,7 @@ for ((i=0; i<$#; i++)); do
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
GETOPT_ARGS=$(getopt -o hc:w:g:de:nm: -l "help","hidden","hostapd-debug:","redirect-to-localhost","mac-filter","mac-filter-accept:","isolate-clients","ieee80211n","ieee80211ac","ht_capab:","vht_capab:","driver:","no-virt","fix-unmanaged","country:","freq-band:","mac:","dhcp-dns:","daemon","pidfile:","logfile:","stop:","list","list-running","list-clients:","version","psk","no-haveged","no-dns","no-dnsmasq","mkconfig:","config:" -n "$PROGNAME" -- "$@")
|
GETOPT_ARGS=$(getopt -o hc:w:g:de:nm: -l "help","hidden","hostapd-debug:","hostapd-timestamps","redirect-to-localhost","mac-filter","mac-filter-accept:","isolate-clients","ieee80211n","ieee80211ac","ht_capab:","vht_capab:","driver:","no-virt","fix-unmanaged","country:","freq-band:","mac:","dhcp-dns:","daemon","pidfile:","logfile:","stop:","list","list-running","list-clients:","version","psk","no-haveged","no-dns","no-dnsmasq","mkconfig:","config:" -n "$PROGNAME" -- "$@")
|
||||||
[[ $? -ne 0 ]] && exit 1
|
[[ $? -ne 0 ]] && exit 1
|
||||||
eval set -- "$GETOPT_ARGS"
|
eval set -- "$GETOPT_ARGS"
|
||||||
|
|
||||||
@ -1229,15 +1230,19 @@ while :; do
|
|||||||
--hostapd-debug)
|
--hostapd-debug)
|
||||||
shift
|
shift
|
||||||
if [ "x$1" = "x1" ]; then
|
if [ "x$1" = "x1" ]; then
|
||||||
HOSTAPD_DEBUG_ARGS="-d"
|
HOSTAPD_DEBUG_ARGS+="-d "
|
||||||
elif [ "x$1" = "x2" ]; then
|
elif [ "x$1" = "x2" ]; then
|
||||||
HOSTAPD_DEBUG_ARGS="-dd"
|
HOSTAPD_DEBUG_ARGS+="-dd "
|
||||||
else
|
else
|
||||||
printf "Error: argument for --hostapd-debug expected 1 or 2, got %s\n" "$1"
|
printf "Error: argument for --hostapd-debug expected 1 or 2, got %s\n" "$1"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
|
--hostapd-timestamps)
|
||||||
|
shift
|
||||||
|
HOSTAPD_DEBUG_ARGS+="-t "
|
||||||
|
;;
|
||||||
--mkconfig)
|
--mkconfig)
|
||||||
shift
|
shift
|
||||||
STORE_CONFIG="$1"
|
STORE_CONFIG="$1"
|
||||||
|
Loading…
Reference in New Issue
Block a user