create_ap

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

commit 93d479c1eb3fb2c16281553efc026681cc083662
parent 81d861cb46e9eef96ec161e8ceb252beaadea3ec
Author: oblique <psyberbits@gmail.com>
Date:   Sat,  6 Sep 2014 19:26:10 +0300

Fix some messages

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

diff --git a/create_ap b/create_ap @@ -610,7 +610,7 @@ if [[ $NO_VIRT -eq 0 ]]; then # in NetworkManager 0.9.10 and above we can set the interface as unmanaged without # the need of MAC address, so we set it before we create the virtual interface. if networkmanager_is_running && [[ $NM_OLDER_VERSION -eq 0 ]]; then - echo -n "Network Manager found, set $1 as unmanaged device... " + echo -n "Network Manager found, set ${VWIFI_IFACE} as unmanaged device... " networkmanager_add_unmanaged ${VWIFI_IFACE} # do not call networkmanager_wait_until_unmanaged because interface does not # exist yet @@ -644,7 +644,7 @@ fi can_transmit_to_channel ${WIFI_IFACE} ${CHANNEL} || die "Your adapter can not transmit to channel ${CHANNEL}." if networkmanager_is_running && ! networkmanager_iface_is_unmanaged ${WIFI_IFACE}; then - echo -n "Network Manager found, set $1 as unmanaged device... " + echo -n "Network Manager found, set ${WIFI_IFACE} as unmanaged device... " networkmanager_add_unmanaged ${WIFI_IFACE} networkmanager_wait_until_unmanaged ${WIFI_IFACE} echo "DONE"