[SCM] live-config branch, debian-next, updated. debian/3.0_a26-1-2-g70553ff

Daniel Baumann daniel at debian.org
Thu Sep 22 07:56:56 UTC 2011


The following commit has been merged in the debian-next branch:
commit 70553ff5f73dee5fc5e3bf58ac9d6ee032e93cbf
Author: Daniel Baumann <daniel at debian.org>
Date:   Thu Sep 22 09:57:15 2011 +0200

    Coding style improvement for if statents in config.sh.

diff --git a/scripts/config.sh b/scripts/config.sh
index a8c1c00..5193274 100755
--- a/scripts/config.sh
+++ b/scripts/config.sh
@@ -133,7 +133,7 @@ Start_network ()
 		/etc/init.d/networking start > /dev/null 2>&1
 
 		# Now force adapter up if specified with ethdevice= on cmdline
-		if [ ! -z "${ETHDEVICE}" ]
+		if [ -n "${ETHDEVICE}" ]
 		then
 			ifup --force "${ETHDEVICE}"
 		fi
@@ -186,10 +186,11 @@ Main ()
 	# Reading kernel command line
 	Cmdline
 
-	if [ "${LIVE_DEBUG}" = "true" ]
-	then
-		set -x
-	fi
+	case "${LIVE_DEBUG}" in
+		true)
+			set -x
+			;;
+	esac
 
 	# Configuring system
 	for _SCRIPT in ${_SCRIPTS}

-- 
live-config



More information about the debian-live-changes mailing list