r4176 - in trunk/bootscripts: . lfs/init.d

nathan at linuxfromscratch.org nathan at linuxfromscratch.org
Thu Sep 16 11:42:45 PDT 2004


Author: nathan
Date: 2004-09-16 12:42:43 -0600 (Thu, 16 Sep 2004)
New Revision: 4176

Modified:
   trunk/bootscripts/CHANGELOG
   trunk/bootscripts/lfs/init.d/network
Log:
Took down interfaces in reverse order

Modified: trunk/bootscripts/CHANGELOG
===================================================================
--- trunk/bootscripts/CHANGELOG	2004-09-16 05:26:28 UTC (rev 4175)
+++ trunk/bootscripts/CHANGELOG	2004-09-16 18:42:43 UTC (rev 4176)
@@ -1,3 +1,6 @@
+n/a - September 16, 2004
+	* nework interfaces are now brought down in reverse order
+
 n/a - September 15, 2004
 	* Added blue bracket, from dj's 3.0-pre1 bootscript package [echo_failure,
 	  echo_warning, and echo_ok]

Modified: trunk/bootscripts/lfs/init.d/network
===================================================================
--- trunk/bootscripts/lfs/init.d/network	2004-09-16 05:26:28 UTC (rev 4175)
+++ trunk/bootscripts/lfs/init.d/network	2004-09-16 18:42:43 UTC (rev 4176)
@@ -31,8 +31,14 @@
 	;;
 
 	stop)
+		# Reverse list
+		FILES=""
+		for file in $network_devices/ifconfig.*; do
+			FILES="${file} ${FILES}"
+		done
+
 		# Stop all network interfaces
-		for file in $network_devices/ifconfig.*; do
+		for file in $FILES; do
 			interface=${file##*/ifconfig.}
 
 			# skip if $file is * (because nothing was found)




More information about the lfs-book mailing list