[Lunar-commits] r18300 - lunar-iso/trunk/lunar-install/sbin

Auke Kok sofar at lunar-linux.org
Tue Jan 24 17:55:50 UTC 2006


Author: sofar
Date: 2006-01-24 17:55:48 +0000 (Tue, 24 Jan 2006)
New Revision: 18300

Modified:
   lunar-iso/trunk/lunar-install/sbin/lunar-install
Log:
Some minor IFS manipulation, cleaned up `kill` stderr.


Modified: lunar-iso/trunk/lunar-install/sbin/lunar-install
===================================================================
--- lunar-iso/trunk/lunar-install/sbin/lunar-install	2006-01-24 17:52:21 UTC (rev 18299)
+++ lunar-iso/trunk/lunar-install/sbin/lunar-install	2006-01-24 17:55:48 UTC (rev 18300)
@@ -89,11 +89,11 @@
 {
 	PROMPT="Reboot now?"
 	if confirm "$PROMPT" "--defaultno"; then
-		kill `jobs -p`
+		kill `jobs -p` &> /dev/null
 		shutdown -r now
 		exit 0
 	else
-		kill `jobs -p`
+		kill `jobs -p` &> /dev/null
 		exit 0
 	fi
 }
@@ -173,7 +173,7 @@
 
 list_discs()
 {(
-	export IFS=$' \t\n'
+	IFS=$' \t\n'
 	local MAJOR MINOR BLOCKS NAME JUNK
 	tail +3 /proc/partitions | \
 			while read MAJOR MINOR BLOCKS NAME JUNK; do
@@ -186,7 +186,7 @@
 
 list_partitions()
 {(
-	export IFS=$' \t\n'
+	IFS=$' \t\n'
 	local MAJOR MINOR BLOCKS NAME JUNK
 	tail +3 /proc/partitions | \
 			while read MAJOR MINOR BLOCKS NAME JUNK; do
@@ -1252,7 +1252,7 @@
 	choices()
 	{
 	  (
-		unset IFS
+		IFS=$' \t\n'
 		for CHOICE in $(echo $@); do
 			echo $CHOICE
 			eval echo \$${CHOICE}_OK\$${CHOICE}_LABEL\\\\Z0



More information about the Lunar-commits mailing list