Package: ifupdown
Version: 0.6.7
Severity: important

I noticed that ifupdown doesn't use if-post-down.d-scripts and/or
post-down-stanzas from interfaces file when it's called by udev's
hotplug events. I'm using madwifi-ng with wpa_supplicant. 

Reproduciable with other hotpluggable hardware?


===========================================================
I use following interfaces file:

auto lo
iface lo inet loopback

allow-hotplug ath0
iface ath0 inet dhcp
        pre-up echo bugtrap_pre-up
        up echo bugtrap_up
        down echo bugtrap_down
        post-down echo bugtrap_post-down

        wpa-driver madwifi
        wpa-conf /etc/wpa_supplicant.conf

iface eth0 inet static
        address 192.168.0.4
        netmask 255.255.255.0
        network 192.168.0.0
        broadcast 192.168.0.255
        gateway 192.168.0.1
        dns-nameservers 130.132.1.1 130.132.1.22

and here is grepped log from ifdown:
sudo strace -f -o ifdown.strace ifdown ath0
grep -E "execv.*(run-p|bugtrap)" ifdown.strace
6417  execve("/bin/sh", ["/bin/sh", "-c", "echo bugtrap_down"], [/* 10 vars 
*/]) = 0
6418  execve("/bin/sh", ["/bin/sh", "-c", "run-parts  
/etc/network/if-down."...], [/* 10 vars */]) = 0
6418  execve("/bin/run-parts", ["run-parts", "/etc/network/if-down.d"], [/* 13 
vars */]) = 0
6422  execve("/bin/run-parts", ["run-parts", "--list", 
"/etc/dhcp3/dhclient-enter-hooks."...], [/* 18 vars */]) = 0
6424  execve("/bin/run-parts", ["run-parts", "--list", 
"/etc/dhcp3/dhclient-exit-hooks.d"...], [/* 18 vars */]) = 0
6426  execve("/bin/sh", ["/bin/sh", "-c", "echo bugtrap_post-down"], [/* 10 
vars */]) = 0
6427  execve("/bin/sh", ["/bin/sh", "-c", "run-parts  
/etc/network/if-post-"...], [/* 10 vars */]) = 0
6427  execve("/bin/run-parts", ["run-parts", "/etc/network/if-post-down.d"], 
[/* 13 vars */]) = 0

and log from pcmia card eject:
sudo strace -f -o udev-down.strace -p `pidof udevd`
grep -E "execv.*(run-p|bugtrap)" udev-down.strace
6504  execve("/bin/sh", ["/bin/sh", "-c", "echo bugtrap_down"], [/* 10 vars 
*/]) = 0
6505  execve("/bin/sh", ["/bin/sh", "-c", "run-parts  
/etc/network/if-down."...], [/* 10 vars */]) = 0
6505  execve("/bin/run-parts", ["run-parts", "/etc/network/if-down.d"], [/* 13 
vars */]) =
0


-- System Information:
Debian Release: testing/unstable
  APT prefers experimental
  APT policy: (500, 'experimental'), (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16-1-686
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages ifupdown depends on:
ii  debconf [debconf-2.0]         1.4.72     Debian configuration management sy
ii  libc6                         2.3.6-4    GNU C Library: Shared libraries an
ii  net-tools                     1.60-17    The NET-3 networking toolkit

ifupdown recommends no packages.

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


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to