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.
This commit is contained in:
parent
488f84e14f
commit
4516520cf2
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user