From 4516520cf20122c4001b698372de45cf416ce226 Mon Sep 17 00:00:00 2001 From: Ahmed Mokhtar Date: Wed, 17 Sep 2014 04:15:34 +0300 Subject: [PATCH] Fix virtual drive auto-renaming In some Linux distributions (e.g. Ubuntu, Debian), udev automatically renames any device with its name prefix is "eth*", "wlan*",... as declared in "/lib/udev/rules.d/75-persistent-net-generator.rules". This made a problem when creating a virtual device on these distributions declaring that device not found. Solution was to change virtual device's name prefix to "ap*" to avoid this collision. --- create_ap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/create_ap b/create_ap index 947f2b7..61e1c86 100755 --- a/create_ap +++ b/create_ap @@ -654,7 +654,7 @@ CONFDIR=$(mktemp -d /tmp/create_ap.${WIFI_IFACE}.conf.XXXXXXXX) echo "Config dir: $CONFDIR" if [[ $NO_VIRT -eq 0 ]]; then - VWIFI_IFACE=${WIFI_IFACE}ap + VWIFI_IFACE=ap${WIFI_IFACE} # 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.