Am 11.11.2014 um 20:01 schrieb Michael Biebl: > Attached is a patch against /etc/init.d/networking. > While we discussed yesterday, to only run "udevadm settle" if there are > any auto interfaces, I changed it, to also cover allow-hotplug. > I also changed the init script to handle allow-hotplug interfaces.
[..] > Please test and report back. Grr, the attached patch had a typo, please try this v2. Michael -- Why is it that all of the instruments seeking intelligent life in the universe are pointed away from Earth?
diff --git a/init.d/networking b/init.d/networking index 404b525..e9fd91d 100755 --- a/init.d/networking +++ b/init.d/networking @@ -105,7 +105,7 @@ ifup_hotplug () { do link=${iface##:*} link=${link##.*} - if [ -e "/sys/class/net/$link" ] && [ "$(cat /sys/class/net/$link/operstate)" = up ] + if [ -e "/sys/class/net/$link" ] then echo "$iface" fi @@ -133,7 +133,12 @@ start) set -f exclusions=$(process_exclusions) log_action_begin_msg "Configuring network interfaces" - if ifup -a $exclusions $verbose + if [ -x /sbin/udevadm ]; then + if [ -n "$(ifquery --list --exclude=lo)" ] || [ -n "$(ifquery --list --allow=hotplug)" ]; then + udevadm settle || true + fi + fi + if ifup -a $exclusions $verbose && ifup_hotplug $exclusions $verbose then log_action_end_msg $? else
signature.asc
Description: OpenPGP digital signature