ifscheme mapping does nothing [gutsy]
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ifscheme (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: ifscheme
I've used ifscheme for several generations of ubuntu and when i updated to gutsy none of my mappings work.
for instance i'll have this:
----------------
auto lo
iface lo inet loopback
auto eth1
auto eth0
mapping eth1
script ifscheme-mapping
mapping eth0
script ifscheme-mapping
iface eth0-wired inet dhcp
iface eth1-wired inet static
address 0.0.0.0
iface eth1-home inet dhcp
wireless-essid Space
iface eth0-home inet static
address 0.0.0.0
------------
if i do "ifscheme home" is see that the scheme is home, if i do /etc/init.
"ifscheme wired" and then /etc/init.
the scheme is correctly seen as wired when i just type "ifscheme" but i see that the networking script
is still trying to attach to the eth1 and isn't doing anything for eth0
i have several other schemes that i have tested this with, other wireless schemes and when i try those schemes my essid [through iwconfig] is still "Space"...
so essentially, the script ifscheme-mapping isn't doing anything.
There seems to be a bug in the scripts. There are two scripts that go into ifscheme:
/sbin/ifscheme mapping
and
/sbin/ifscheme-
If you look at the scripts, you will notice that the new profile is written to a file /etc/network/scheme by ifscheme, but ifscheme-mapping looks at /etc/network/ run/scheme for the new scheme. Hence, nothing is done. You could fix either of the scripts.