Activity log for bug #1262874

Date Who What changed Old value New value Message
2013-12-19 21:45:55 Steve Dodd bug added bug
2013-12-19 21:45:55 Steve Dodd attachment added Always reconfigure physical if it wasn't reconfigured under this logical ifname https://bugs.launchpad.net/bugs/1262874/+attachment/3932841/+files/func.patch
2013-12-19 21:59:04 Steve Dodd tags apport-collected quantal
2013-12-19 21:59:05 Steve Dodd description I'm running 12.10 on a mostly headless MK808 stick - but I believe this bug will exist on later versions as well as the code in question hasn't changed. Originally I had my /etc/network/interfaces configured to use wpa_supplicant in roaming mode, and this worked correctly. Then I needed to add an option to boot into hotspot mode, which I implemented using a flag file and a custom mapping script. After doing this, however, my roaming interfaces were not configured. Here is /etc/network/interfaces: # interfaces(5) file used by ifup(8) and ifdown(8) auto lo iface lo inet loopback auto eth0 mapping eth0 script /usr/local/bin/hotspot-req.sh map true host map false wpa iface host inet static pre-up /sbin/iwconfig eth0 power off pre-up /sbin/iwconfig eth0 mode Master || true pre-up /sbin/iwconfig eth0 essid KITCHEN1 address 192.168.150.1 netmask 255.255.255.0 iface wpa inet manual wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf wpa-debug-level 3 pre-up /sbin/iwconfig eth0 power off iface kitchen inet dhcp pre-up /sbin/iwconfig eth0 power off iface home inet dhcp pre-up /sbin/iwconfig eth0 power off The problem seems to be that ifup is not invoked with --force, although it apparently needs to be. The test is performed in this line of /etc/wpa_supplicant/functions.sh: if [ -n "$IFSTATE_FILE" ] && grep -q "^$WPA_IFACE=$WPA_IFACE" "$IFSTATE_FILE"; then Changing it to: if [ -n "$IFSTATE_FILE" ] && grep -q "^$WPA_IFACE=" "$IFSTATE_FILE" && ! grep -q "^$WPA_IFACE=$WPA_LOGICAL_IFACE"; then fixes my problem but I would like some thoughts on whether this is correct. The idea is if that physical interface is already configured, but not using the current logical interface name, then it needs to be forcibly reconfigured... I'm running 12.10 on a mostly headless MK808 stick - but I believe this bug will exist on later versions as well as the code in question hasn't changed. Originally I had my /etc/network/interfaces configured to use wpa_supplicant in roaming mode, and this worked correctly. Then I needed to add an option to boot into hotspot mode, which I implemented using a flag file and a custom mapping script. After doing this, however, my roaming interfaces were not configured. Here is /etc/network/interfaces: # interfaces(5) file used by ifup(8) and ifdown(8) auto lo iface lo inet loopback auto eth0 mapping eth0 script /usr/local/bin/hotspot-req.sh map true host map false wpa iface host inet static pre-up /sbin/iwconfig eth0 power off pre-up /sbin/iwconfig eth0 mode Master || true pre-up /sbin/iwconfig eth0 essid KITCHEN1 address 192.168.150.1 netmask 255.255.255.0 iface wpa inet manual wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf wpa-debug-level 3 pre-up /sbin/iwconfig eth0 power off iface kitchen inet dhcp pre-up /sbin/iwconfig eth0 power off iface home inet dhcp pre-up /sbin/iwconfig eth0 power off The problem seems to be that ifup is not invoked with --force, although it apparently needs to be. The test is performed in this line of /etc/wpa_supplicant/functions.sh: if [ -n "$IFSTATE_FILE" ] && grep -q "^$WPA_IFACE=$WPA_IFACE" "$IFSTATE_FILE"; then Changing it to: if [ -n "$IFSTATE_FILE" ] && grep -q "^$WPA_IFACE=" "$IFSTATE_FILE" && ! grep -q "^$WPA_IFACE=$WPA_LOGICAL_IFACE"; then fixes my problem but I would like some thoughts on whether this is correct. The idea is if that physical interface is already configured, but not using the current logical interface name, then it needs to be forcibly reconfigured... --- ApportVersion: 2.6.1-0ubuntu13 Architecture: armhf DistroRelease: Ubuntu 12.10 MarkForUpload: True Package: wpasupplicant 1.0-2ubuntu5 PackageArchitecture: armhf ProcEnviron: TERM=screen.linux PATH=(custom, no user) LANG=en_US.UTF-8 SHELL=/bin/bash Tags: quantal Uname: Linux 3.0.8+ armv7l UpgradeStatus: No upgrade log present (probably fresh install) UserGroups: mtime.conffile..etc.wpa.supplicant.functions.sh: 2013-12-19T21:42:06.469364
2013-12-19 21:59:06 Steve Dodd attachment added Dependencies.txt https://bugs.launchpad.net/bugs/1262874/+attachment/3932844/+files/Dependencies.txt
2013-12-19 21:59:07 Steve Dodd attachment added modified.conffile..etc.wpa.supplicant.functions.sh.txt https://bugs.launchpad.net/bugs/1262874/+attachment/3932845/+files/modified.conffile..etc.wpa.supplicant.functions.sh.txt
2013-12-20 00:19:56 Ubuntu Foundations Team Bug Bot tags apport-collected quantal apport-collected patch quantal
2013-12-20 00:20:03 Ubuntu Foundations Team Bug Bot bug added subscriber Ubuntu Review Team