create_ap

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

commit 9d7806882abe44ff124017a8c0c88801c5c102ab
parent 3db732ed503bf7ef47c59cee5511e30e5bd60860
Author: oblique <psyberbits@gmail.com>
Date:   Wed,  1 Oct 2014 12:11:24 +0300

Minor change in an output message

Diffstat:
Mcreate_ap | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/create_ap b/create_ap @@ -695,10 +695,12 @@ if [[ $NO_VIRT -eq 0 ]]; then if is_wifi_connected ${WIFI_IFACE}; then WIFI_IFACE_FREQ=$(iw dev ${WIFI_IFACE} link | grep -i freq | awk '{print $2}') WIFI_IFACE_CHANNEL=$(ieee80211_frequency_to_channel ${WIFI_IFACE_FREQ}) - echo "${WIFI_IFACE} is already set at channel ${WIFI_IFACE_CHANNEL} (${WIFI_IFACE_FREQ} MHz)" + echo -n "${WIFI_IFACE} is already associated with channel ${WIFI_IFACE_CHANNEL} (${WIFI_IFACE_FREQ} MHz)" if [[ $WIFI_IFACE_CHANNEL -ne $CHANNEL ]]; then - echo "We can not set to channel ${CHANNEL}, fallback to channel ${WIFI_IFACE_CHANNEL}" + echo ", fallback to channel ${WIFI_IFACE_CHANNEL}" CHANNEL=$WIFI_IFACE_CHANNEL + else + echo fi fi