[SCM] live-config branch, debian-next, updated. debian/2.0_a7-1-4-g4c5d60f
Daniel Baumann
daniel at debian.org
Wed Jun 9 08:35:46 UTC 2010
The following commit has been merged in the debian-next branch:
commit 4c5d60f0211d67c14647f65be8bfbb55b5499c40
Author: Daniel Baumann <daniel at debian.org>
Date: Wed Jun 9 10:35:38 2010 +0200
Using example script with proper order number.
diff --git a/examples/live-config-foobar/scripts/nnn-foobar b/examples/live-config-foobar/scripts/nnn-foobar
deleted file mode 100755
index 3097f2f..0000000
--- a/examples/live-config-foobar/scripts/nnn-foobar
+++ /dev/null
@@ -1,50 +0,0 @@
-#!/bin/sh
-
-# live-config-foobar(7) - Additional Configuration Scripts for Debian Live
-# Copyright (C) 2010 John Doe <john at example.org>
-#
-# live-config-foobar comes with ABSOLUTELY NO WARRANTY; for details see COPYING.
-# This is free software, and you are welcome to redistribute it
-# under certain conditions; see COPYING for details.
-
-
-Foobar ()
-{
- # Checking if package is installed or already configured
- if [ ! -e /var/lib/dpkg/info/foobar.list ] || \
- [ -e /var/lib/live/config/foobar ]
- then
- return
- fi
-
- echo -n " foobar"
-
- Configure_foobar
-}
-
-Configure_foobar ()
-{
- # Boot parameters can be acted up either this way...
- if ! grep -qs "live-helper.foobar" /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.foobar=*)
- LIVE_FOOBAR="${_PARAMETER#live-config.foobar=}"
- ;;
- esac
- done
-
- # Configuring foobar
- sleep 1
-
- # Creating state file
- touch /var/lib/live/config/foobar
-}
-
-Foobar
--
live-config
More information about the debian-live-changes
mailing list