ifscheme mapping does nothing [gutsy]

Bug #160585 reported by x37v
4
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.d/networking restart i get onto my wireless network but if i do
"ifscheme wired" and then /etc/init.d/networking restart
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.

Revision history for this message
Arvind Menon (amenon81) wrote :

There seems to be a bug in the scripts. There are two scripts that go into ifscheme:

/sbin/ifscheme
and
/sbin/ifscheme-mapping

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.

Revision history for this message
x37v (x37v-alex) wrote :

Alright, i changed line 10 of ifscheme from:
SCHEME=/etc/network/scheme
to
SCHEME=/etc/network/run/scheme

and now ifscheme works!

I guess someone should add this [or another appropriate fix] to the distro?

Thanks,
-Alex

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ifscheme - 1.7-2.1ubuntu1

---------------
ifscheme (1.7-2.1ubuntu1) karmic; urgency=low

  * Merge from debian unstable, remaining changes: LP: #399136
    - Corrected new ifstate and scheme location
  * Change /etc/network/run/scheme > /etc/network/scheme in
    ifscheme-mapping also closes LP: #160585, LP: #376641(Hopefully)

 -- Bhavani Shankar <email address hidden> Tue, 14 Jul 2009 11:52:24 +0530

Changed in ifscheme (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.