Public bug reported:

Binary package hint: ifupdown

Package: ifupdown
Version: 0.6.8ubuntu6
Severity: normal
Tags: patch

In the /etc/udev/rules.d/85-ifupdown.rules, the remove
rule is, like the add one, conditionalised under
SUBSYSTEM=="net" and DRIVERS=="?*". Unfortunately,
on my system (cdc usb ether driver, connecting to openmoko phone)
the DRIVERS variable isn't set at all when the device is unplugged.

This causes ifdown to fail to be run on device removal, which prevents
the device working next time it is plugged in, since ifup doesn't
do anything when the interface is already up.

Fix: Move the remove line to the end of the file, and insert conditional
subsystem.

SUBSYSTEM=="net", ACTION=="remove",     RUN+="/sbin/start-stop-daemon
--start --background --pidfile /var/run/network/bogus --startas
/sbin/ifdown -- --allow auto $env{INTERFACE}"

-- System Information:
Debian Release: 4.0
  APT prefers feisty-security
  APT policy: (500, 'feisty-security'), (500, 'feisty')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/dash
Kernel: Linux 2.6.20-16-generic
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)

Versions of packages ifupdown depends on:
ii  cdebconf [debconf-2.0]    0.111ubuntu2   Debian Configuration Management Sy
ii  debconf [debconf-2.0]     1.5.13ubuntu1  Debian configuration management sy
ii  libc6                     2.5-0ubuntu14  GNU C Library: Shared libraries
ii  lsb-base                  3.1-22ubuntu3  Linux Standard Base 3.1 init scrip
ii  net-tools                 1.60-17ubuntu1 The NET-3 networking toolkit

ifupdown recommends no packages.

-- debconf information:
  ifupdown/convert-interfaces: true
  ifupdown/convert-interfaces-hotplug: true

** Affects: ifupdown (Ubuntu)
     Importance: Undecided
         Status: New

-- 
udev rule can fail to run ifdown, break reinserting device
https://bugs.launchpad.net/bugs/130437
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to