diff --git a/create_ap b/create_ap index 526222f..8ee8d4d 100755 --- 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"