[SCM] live-config branch, debian, updated. debian/2.0_a4-1-4-g04f964e

Daniel Baumann daniel at debian.org
Sat Jun 5 12:17:10 UTC 2010


The following commit has been merged in the debian branch:
commit 7231936c5d760866eaf7a4cec2c97d82d92b1844
Author: Daniel Baumann <daniel at debian.org>
Date:   Fri Jun 4 10:20:07 2010 +0200

    Adding boot parameter handling in example script.

diff --git a/examples/scripts/nnn-foobar b/examples/scripts/nnn-foobar
index ea0765f..499da20 100755
--- a/examples/scripts/nnn-foobar
+++ b/examples/scripts/nnn-foobar
@@ -16,9 +16,25 @@ Foo ()
 
 Configure_foo ()
 {
-	# Checking if apckage is already configured
+	# Checking if package is already configured
 	sleep 1
 
+	# Boot parameters can be acted up either this way...
+	if ! grep -qs "live-helper.foo" /proc/cmdline
+	then
+		return
+	fi
+
+	# ...or if you want to specify certain options:
+	for _PARAMETER in $(cat /proc/cmdline)
+	do
+		case "${_PARAMETER}" in
+			live-config.foo=*)
+				LIVE_FOO="${_PARAMETER#live-config.foo=}"
+				;;
+		esac
+	done
+
 	# Configuring foo
 	sleep 1
 

-- 
live-config



More information about the debian-live-changes mailing list