Your message dated Wed, 21 Oct 2009 12:17:44 +0000
with message-id <[email protected]>
and subject line Bug#551530: fixed in ifplugd 0.28-16
has caused the Debian Bug report #551530,
regarding ifplugd: Hotplug interfaces are not restarted on suspend/resume
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
551530: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=551530
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: ifplugd
Version: 0.28-15
Severity: normal
Ifplugd can restart interfaces on suspend/resume, but only static interfaces
that are managed by /etc/init.d/ifplugd.
The same is needed for hotplug interfaces, for which ifplugd is started by
udev. Otherwise the network might not work after resume because no
DHCP lease is requested, etc.
Attached is a script for pm-utils and apmd, that implements restarting
for hotplug interfaces. It should be put in /etc/pm/sleep.d and
/etc/apm/scripts.d and replace the current script.
This script extends the one attached to #527583.
-- Package-specific info:
/sys/class/net/ interfaces:
/sys/class/net/eth0/
/sys/class/net/lo/
-- System Information:
Debian Release: squeeze/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1,
'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.31.4-amd64 (SMP w/2 CPU cores)
Locale: LANG=POSIX, LC_CTYPE=de_AT.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages ifplugd depends on:
ii debconf [debconf-2.0] 1.5.27 Debian configuration management sy
ii libc6 2.9-25 GNU C Library: Shared libraries
ii libdaemon0 0.13-3 lightweight C library for daemons
ii lsb-base 3.2-23 Linux Standard Base 3.2 init scrip
Versions of packages ifplugd recommends:
ii ifupdown 0.6.9 high level tools to configure netw
Versions of packages ifplugd suggests:
pn wpasupplicant <none> (no description available)
-- debconf information:
ifplugd/interfaces:
ifplugd/hotplug_interfaces:
ifplugd/args: -q -f -u0 -d10 -w -I
ifplugd/suspend_action: stop
#!/bin/sh
#
# suspend/resume ifplugd
[ -f /etc/default/ifplugd ] || exit 0
. /etc/default/ifplugd
[ "$SUSPEND_ACTION" ] || [ "$SUSPEND_ACTION" != "none" ] || exit 0
if [ "$SUSPEND_ACTION" = "suspend" ] ; then
RESUME_ACTION="resume"
elif [ "$SUSPEND_ACTION" = "stop" ] ; then
RESUME_ACTION="start"
else
exit 0
fi
# Hotplug interfaces
#
# ifplugd for interfaces in HOTPLUG_INTERFACES is started by udev.
# The ifplugd init.d script doesn't touch them. We still want to
# stop/start these interfaces on suspend/resume. Here is some
# hackery to do this.
# use pm-utils functions for state save/restore, if available
[ -f "${PM_FUNCTIONS}" ] && . "${PM_FUNCTIONS}"
# name of the save/restore state
IFPLUGD_STATE="ifplugd_ifs"
# return 0 if the first parm is an element of the remaining parms
# or they contain the special value "all"
elem_of() {
local E=$1
shift
echo $@ | grep -Eq "(\\<all\\>)|(\\<${E}\\>)"
}
# save state using pm-utils
save_state() {
savestate ${IFPLUGD_STATE} 2>/dev/null
}
# load saved state using pm-utils
load_state() {
restorestate ${IFPLUGD_STATE} 2>/dev/null
}
# filter only hotplug interfaces
filter_hotplug_ifs() {
while read L; do
for IF in $L; do
# interface is managed statically
elem_of "${IF}" "${INTERFACES}" && continue
# interface is not managed by udev
elem_of "${IF}" "${HOTPLUG_INTERFACES}" || continue
# ignore lo
[ "x${IF}" = "xlo" ] && continue
echo -n "${IF} "
done
done
echo ""
}
# get interfaces of running ifplugds for hotplug IFs
get_running_ifs() {
ps --no-headers -o args -C ifplugd | \
sed -e 's/.*-[[:alpha:]]*i[[:space:]]*\([^[:space:]]\+\).*/\1/' | \
filter_hotplug_ifs
}
# get all existing hotplug IFs
get_hotplug_ifs() {
local IFACES=""
for IF in /sys/class/net/*; do
echo "${IF##*/} "
done | filter_hotplug_ifs
}
# stop all ifplugd instances that where started by udev
# stop_udev_ifs <action>
stop_udev_ifs() {
local ACTION=$1
local IFACES
local IF
IFACES=`get_running_ifs`
# save list of interfaces we stop, so we can restart them
echo "${IFACES}" | save_state || true
for IF in ${IFACES}; do
if [ "x${ACTION}" = "xsuspend" ]; then
ifplugd -i ${IF} -S
else
ifplugd -i ${IF} -k
fi
# ifplugd started by udev doesn't take down the IF
/etc/ifplugd/ifplugd.action ${IF} down
done
}
# start ifplugd for all interfaces that were stopped by us
# start_udev_ifs <action>
start_udev_ifs() {
local ACTION=$1
local IFACES
local IF
# try to load list of interfaces
# if it can't be loaded, we just start all hotplug interfaces
IFACES=`load_state || get_hotplug_ifs`
for IF in ${IFACES}; do
if [ "x${ACTION}" = "xresume" ] && ifplugd -i ${IF} -c; then
ifplugd -i ${IF} -R
else
# start ifplugd just as udev would
INTERFACE=${IF} ACTION=add /lib/udev/ifplugd.agent
fi
done
}
case "$1" in
hibernate|suspend|suspend_hybrid)
/etc/init.d/ifplugd ${SUSPEND_ACTION}
stop_udev_ifs ${SUSPEND_ACTION}
;;
thaw|resume)
if [ "x$2" != "xstandby" ]; then
start_udev_ifs ${RESUME_ACTION}
/etc/init.d/ifplugd ${RESUME_ACTION}
fi
;;
*) exit 1
;;
esac
exit 0
--- End Message ---
--- Begin Message ---
Source: ifplugd
Source-Version: 0.28-16
We believe that the bug you reported is fixed in the latest version of
ifplugd, which is due to be installed in the Debian FTP archive:
ifplugd_0.28-16.diff.gz
to pool/main/i/ifplugd/ifplugd_0.28-16.diff.gz
ifplugd_0.28-16.dsc
to pool/main/i/ifplugd/ifplugd_0.28-16.dsc
ifplugd_0.28-16_i386.deb
to pool/main/i/ifplugd/ifplugd_0.28-16_i386.deb
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Y Giridhar Appaji Nag <[email protected]> (supplier of updated ifplugd package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Format: 1.8
Date: Wed, 21 Oct 2009 17:08:12 +0530
Source: ifplugd
Binary: ifplugd
Architecture: source i386
Version: 0.28-16
Distribution: unstable
Urgency: low
Maintainer: Y Giridhar Appaji Nag <[email protected]>
Changed-By: Y Giridhar Appaji Nag <[email protected]>
Description:
ifplugd - configuration daemon for ethernet devices
Closes: 527583 551530
Changes:
ifplugd (0.28-16) unstable; urgency=low
.
* Install a script for supporting suspend/resume with pm-utils and apmd.
Thanks Harald Braumann <[email protected]> for the fix (Closes: #527583
Closes: #551530)
* Update Standards-Version to 3.8.3 (no changes required)
* Fix lintian P:maintainer-script-without-set-e
Checksums-Sha1:
fbdcda12fa53600d38ca81d8d45c4c6af54b9fb8 1531 ifplugd_0.28-16.dsc
054191ee13b3ec923f8f4db38da794579fa262dc 51509 ifplugd_0.28-16.diff.gz
79c7ab59e635d37383dd24d8ad921b3c990fcdb9 69326 ifplugd_0.28-16_i386.deb
Checksums-Sha256:
9b7d00d6fa343a54ff5ced7af7abe9d25e957a9ea931c4aa7558ea3a1fa5b1bf 1531
ifplugd_0.28-16.dsc
6ed45fe39ce5bd797fd4eedacb9e2a46d2299514c2f107051c2e9d0ac3aede7f 51509
ifplugd_0.28-16.diff.gz
cc4e2681f423e41427f55a3ebb78296c7671a1a691aa2e012adb5c02381ae349 69326
ifplugd_0.28-16_i386.deb
Files:
fd000762fe12189542efcf1336c0cb83 1531 net optional ifplugd_0.28-16.dsc
1f8c233e9000377ecf1c5b12a6910a61 51509 net optional ifplugd_0.28-16.diff.gz
9047cf9f3ed9db616b1dc25f9deeba38 69326 net optional ifplugd_0.28-16_i386.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iQEcBAEBCAAGBQJK3vgyAAoJENbfLHnbvsrco7gH/28zxJY67QJ73NbYKVncmecJ
cSw9WOCjPJcJSfLFvBtk6k7c4ylfg4TmXcwp6kexFa9qhTLlQvF7sHuA9c3u+P2U
XjG3R/au6UXvLEXxkK2CmYljDzKOPxJm4YnEh6SsKKonIcBe+f2MiCnlvgQBOD2N
F7CEAqmM4kIN0WhkugoJgrA/RkbHuRHkEzb3QWK3A+Y9pvye59XCbenjz1Pn1Hpz
5+eqBVCEFdmNgwEikEP+hP+1wEyd2RBZ2w99wdaDZNIqJrR6m6CO+EKjGPt3+bK2
11zEvdsvjpJBPnf49DCVzE1JEoUULIsCu/GtJhwyoho12mt9KHdoXJfcgO4V988=
=J5BD
-----END PGP SIGNATURE-----
--- End Message ---