SVN: rc-scripts/trunk/rc.d/init.d/network

glen glen at pld-linux.org
Thu Dec 7 22:52:31 CET 2006


Author: glen
Date: Thu Dec  7 22:52:31 2006
New Revision: 8085

Modified:
   rc-scripts/trunk/rc.d/init.d/network
Log:
Small cosmetics.

Modified: rc-scripts/trunk/rc.d/init.d/network
==============================================================================
--- rc-scripts/trunk/rc.d/init.d/network	(original)
+++ rc-scripts/trunk/rc.d/init.d/network	Thu Dec  7 22:52:31 2006
@@ -23,7 +23,7 @@
 
 # Will be removed in the future
 if [ -n "$NETWORKING" ] && is_yes "$NETWORKING"; then
-	if [ -z "$IPV4_NETWORKING" ] ; then
+	if [ -z "$IPV4_NETWORKING" ]; then
 		echo "NETWORKING is set to YES, but IPV4_NETWORKING is empty!"
 		echo "Please upgrade your config"
 		echo "Assuming you want IPv4 networking"
@@ -139,7 +139,7 @@
 					*ifcfg-lo) continue ;;
 				esac
 				ONBOOT=""; . "$i" 2>/dev/null
-				is_yes "$ONBOOT" && echo "${i##*/ifcfg-}"
+				[ ${ONBOOT:-no} = yes ] && echo "${i##*/ifcfg-}"
 			done
 		`
 	else
@@ -149,7 +149,7 @@
 					ifcfg-lo|ifcfg-sit*|ifcfg-atm*|ifcfg-lec*|ifcfg-nas*|ifcfg-br*|ifcfg-*.*) continue ;;
 				esac
 				ONBOOT=""; . "$i" 2>/dev/null
-				is_yes "$ONBOOT" && echo "${i##*/ifcfg-}"
+				[ ${ONBOOT:-no} = yes ] && echo "${i##*/ifcfg-}"
 			done
 		`
 
@@ -160,7 +160,7 @@
 					*) continue ;;
 				esac
 				ONBOOT=""; . "$i" 2>/dev/null
-				is_yes "$ONBOOT" && echo "${i##*/ifcfg-}"
+				[ ${ONBOOT:-no} = yes ] && echo "${i##*/ifcfg-}"
 			done
 		`
 
@@ -171,7 +171,7 @@
 					*) continue ;;
 				esac
 				ONBOOT=""; . "$i" 2>/dev/null
-				is_yes "$ONBOOT" && echo "${i##*/ifcfg-}"
+				[ ${ONBOOT:-no} = yes ] && echo "${i##*/ifcfg-}"
 			done
 		`
 
@@ -182,7 +182,7 @@
 					*) continue ;;
 				esac
 				ONBOOT=""; . "$i" 2>/dev/null
-				is_yes "$ONBOOT" && echo "${i##*/ifcfg-}"
+				[ ${ONBOOT:-no} = yes ] && echo "${i##*/ifcfg-}"
 			done
 		`
 	fi
@@ -190,7 +190,7 @@
 	tunnels=`
 		for i in $(network_interface_configs 'tnlcfg-*'); do
 			ONBOOT=""; . "$i" 2>/dev/null
-			is_yes "$ONBOOT" && echo "${i##*/tnlcfg-}"
+			[ ${ONBOOT:-no} = yes ] && echo "${i##*/tnlcfg-}"
 		done
 	`
 }
@@ -199,7 +199,7 @@
 	rc_splash "bootnetwork start"
 	network_init
 
-	for i in $interfaces_boot $interfaces_vlan_boot $interfaces_sit_boot ; do
+	for i in $interfaces_boot $interfaces_vlan_boot $interfaces_sit_boot; do
 		run_cmd -a "$(nls 'Bringing up interface %s' "$i")" /sbin/ifup $i boot
 	done
 


More information about the pld-cvs-commit mailing list