SVN: rc-scripts/trunk/sysconfig/network-scripts/functions.network

glen glen at pld-linux.org
Sat Aug 13 15:42:40 CEST 2011


Author: glen
Date: Sat Aug 13 15:42:40 2011
New Revision: 12304

Modified:
   rc-scripts/trunk/sysconfig/network-scripts/functions.network
Log:
emit net-device-up events, so upstart-socket-bridge could function

Modified: rc-scripts/trunk/sysconfig/network-scripts/functions.network
==============================================================================
--- rc-scripts/trunk/sysconfig/network-scripts/functions.network	(original)
+++ rc-scripts/trunk/sysconfig/network-scripts/functions.network	Sat Aug 13 15:42:40 2011
@@ -348,6 +348,8 @@
 		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 @@
 
 	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


More information about the pld-cvs-commit mailing list