roaming interfaces not configured after use of mapping in interfaces(5)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
wpasupplicant (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug 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(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback
auto eth0
mapping eth0
script /usr/local/
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_
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_
if [ -n "$IFSTATE_FILE" ] && grep -q "^$WPA_
Changing it to:
if [ -n "$IFSTATE_FILE" ] && grep -q "^$WPA_IFACE=" "$IFSTATE_FILE" && ! grep -q "^$WPA_
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
PackageArchitec
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.
apport information