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

winkie at linuxfromscratch.org winkie at linuxfromscratch.org
Tue Jun 29 20:38:21 PDT 2004


Author: winkie
Date: 2004-06-29 21:38:19 -0600 (Tue, 29 Jun 2004)
New Revision: 3866

Modified:
   trunk/bootscripts/CHANGELOG
   trunk/bootscripts/lfs/init.d/network
Log:
Clarified the grep a bit in the network script

Modified: trunk/bootscripts/CHANGELOG
===================================================================
--- trunk/bootscripts/CHANGELOG	2004-06-29 10:13:08 UTC (rev 3865)
+++ trunk/bootscripts/CHANGELOG	2004-06-30 03:38:19 UTC (rev 3866)
@@ -1,3 +1,7 @@
+n/a - June 29, 2004
+
+	* Made the grep for ONBOOT in the network script more exact
+
 2.1.2 - June 27, 2004
 
 	* install the automatic module loading script by default

Modified: trunk/bootscripts/lfs/init.d/network
===================================================================
--- trunk/bootscripts/lfs/init.d/network	2004-06-29 10:13:08 UTC (rev 3865)
+++ trunk/bootscripts/lfs/init.d/network	2004-06-30 03:38:19 UTC (rev 3866)
@@ -11,7 +11,7 @@
 case "$1" in
 	start)
 		# Start all network interfaces which have ONBOOT in them.
-		for file in $(grep -sil "ONBOOT=yes" $network_devices/ifconfig.*)
+		for file in $(grep -sil '^ONBOOT=yes$' $network_devices/ifconfig.*)
 		do
 			interface=${file##*/ifconfig.}
 			case "$interface" in
@@ -45,7 +45,7 @@
 		fi
 
 		# Stop all network interfaces
-		for file in $(grep -sil "ONBOOT=yes" $network_devices/ifconfig.*)
+		for file in $(grep -sil '^ONBOOT=yes$' $network_devices/ifconfig.*)
 		do
 			interface=${file##*/ifconfig.}
 			case "$interface" in




More information about the lfs-book mailing list