create_ap

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

commit 9c4a95b0b100119987e0b4bf2050b17edaab96c1
parent 3bae9f44f14a79d298f0a19680a8912d6f4b91e1
Author: oblique <psyberbits@gmail.com>
Date:   Sat, 18 Jul 2015 09:19:04 +0300

Use [[:blank:]] instead of space in iwlist regex

Diffstat:
Mcreate_ap | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/create_ap b/create_ap @@ -299,7 +299,7 @@ can_transmit_to_channel() { return 0 else CHANNEL_NUM=$(printf '%02d' ${CHANNEL_NUM}) - CHANNEL_INFO=$(iwlist ${IFACE} channel | grep "Channel ${CHANNEL_NUM} :") + CHANNEL_INFO=$(iwlist ${IFACE} channel | grep -E "Channel[[:blank:]]${CHANNEL_NUM}[[:blank:]]?:") [[ -z "${CHANNEL_INFO}" ]] && return 1 return 0 fi