From 1e9ab064f7060ee18177a355a40fea0bbba1c3d0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Sat, 13 Aug 2011 13:42:40 +0000 Subject: [PATCH] emit net-device-up events, so upstart-socket-bridge could function svn-id: @12304 --- sysconfig/network-scripts/functions.network | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sysconfig/network-scripts/functions.network b/sysconfig/network-scripts/functions.network index 12158157..5a90b723 100644 --- a/sysconfig/network-scripts/functions.network +++ b/sysconfig/network-scripts/functions.network @@ -348,6 +348,8 @@ set_up_loopback() ip addr add 127.0.0.1/8 dev lo fi ip link set dev lo up + emit net-device-up IFACE=lo + grep -E "^(lo|any)[[:blank:]]" /etc/sysconfig/static-routes | while read device args; do if [[ "$args" = *:* ]]; then is_no "$IPV6_NETWORKING" && continue @@ -646,6 +648,7 @@ check_link_down () if ! LC_ALL=C ip link show dev $device 2>/dev/null | grep -q UP; then ip link set dev $device up >/dev/null 2>&1 + emit net-device-up IFACE=$device fi timeout=0 while [ $timeout -le $max_timeout ]; do -- 2.44.0