create_ap

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

commit 4516520cf20122c4001b698372de45cf416ce226
parent 488f84e14fd4115b1a9a77f3f190c9e75203d2a5
Author: Ahmed Mokhtar <mokhtar92@gmail.com>
Date:   Wed, 17 Sep 2014 04:15:34 +0300

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.
Diffstat:
Mcreate_ap | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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.