[SCM] live-config branch, debian, updated. debian/2.0_a14-1-16-gd485a6f

Daniel Baumann daniel at debian.org
Fri Jul 16 23:18:47 UTC 2010


The following commit has been merged in the debian branch:
commit 1ea981ce57a60236b380b304ec7a0ffb2699d594
Author: Daniel Baumann <daniel at debian.org>
Date:   Fri Jul 16 20:15:28 2010 +0200

    Adding example hooks.

diff --git a/examples/hooks/cat b/examples/hooks/cat
new file mode 100755
index 0000000..6f96345
--- /dev/null
+++ b/examples/hooks/cat
@@ -0,0 +1,26 @@
+#!/bin/sh
+
+echo
+echo "live-config hook: cat"
+
+_FILENAME=""
+
+while [ "${_FILENAME}" != c ]
+do
+	echo
+	echo -n "Enter filename [q for quit]: "
+
+	read _FILENAME
+
+	if [ -n "${_FILENAME}" ]
+	then
+		echo
+		echo "Begin: ${_FILENAME}"
+		echo "--------------------------------------------------------------------------------"
+
+		cat "${_FILENAME}"
+
+		echo "--------------------------------------------------------------------------------"
+		echo "End: ${_FILENAME}"
+	fi
+done
diff --git a/examples/hooks/passwd b/examples/hooks/passwd
new file mode 100755
index 0000000..38b5171
--- /dev/null
+++ b/examples/hooks/passwd
@@ -0,0 +1,30 @@
+#!/bin/sh
+
+echo
+echo "live-config hook: passwd"
+
+_USERNAME=""
+
+while [ "${_USERNAME}" != q ]
+do
+	echo
+	echo -n "Enter username [q for quit]: "
+
+	read _USERNAME
+
+	_USERNAME="${_USERNAME:-${LIVE_USERNAME}}"
+
+	case "${_USERNAME}" in
+		root)
+			passwd
+			;;
+
+		*)
+			if [ -n "${_USERNAME}" ]
+			then
+				echo
+				passwd "${_USERNAME}"
+			fi
+			;;
+	esac
+done
diff --git a/examples/hooks/rm b/examples/hooks/rm
new file mode 100755
index 0000000..a7ffbbf
--- /dev/null
+++ b/examples/hooks/rm
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+echo
+echo "live-config hook: rm"
+
+_FILENAME=""
+
+while [ "${_FILENAME}" != q ]
+do
+	echo
+	echo -n "Enter filename [q for quit]: "
+
+	read _FILENAME
+
+	if [ -n "${_FILENAME}" ]
+	then
+		rm -rf "${_FILENAME}"
+	fi
+done
diff --git a/examples/hooks/sh b/examples/hooks/sh
new file mode 100755
index 0000000..737bcd7
--- /dev/null
+++ b/examples/hooks/sh
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+echo
+echo "live-config hook: sh"
+
+echo
+echo "Starting shell [logout for quit]: "
+
+sh
diff --git a/examples/hooks/vi b/examples/hooks/vi
new file mode 100755
index 0000000..2ae99e6
--- /dev/null
+++ b/examples/hooks/vi
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+echo
+echo "live-config hook: vi"
+
+_FILENAME=""
+
+while [ "${_FILENAME}" != q ]
+do
+	echo
+	echo -n "Enter filename [q for quit]: "
+
+	read _FILENAME
+
+	vi "${_FILENAME}"
+done
diff --git a/manpages/de/live-config.de.7 b/manpages/de/live-config.de.7
index 0a57ab4..343afd6 100644
--- a/manpages/de/live-config.de.7
+++ b/manpages/de/live-config.de.7
@@ -100,8 +100,8 @@ sein, die Dateien werden in /tmp des laufenden Live Systems ausgeführt und
 es müssen alle Abhängigkeiten, die für das Ausführen der Dateien notwendig
 sind,bereits installiert sein, zum Beispiel muss für ein Python Skript
 bereits Python auf dem System installiert sein. Einige Hooks für häufige
-Anwendungsfälle sind unter  <\fIhttp://live.debian.net/other/hooks\fP>
-verfügbar.
+Anwendungsfälle sind in /usr/share/doc/live\-config/examples/hooks/ und unter
+<\fIhttp://live.debian.net/other/hooks\fP> verfügbar.
 .br
 Falls die Datei sich auf dem Live Medium befindet, kann sie mittels
 file:///live/image/\fIFILE\fP benutzt werden, falls sie sich im Root
diff --git a/manpages/en/live-config.7 b/manpages/en/live-config.7
index 5015a26..fc28d93 100644
--- a/manpages/en/live-config.7
+++ b/manpages/en/live-config.7
@@ -59,7 +59,7 @@ Allows to set xorg driver instead of autodetecting it.
 .IP "\fBlive\-config.xorg\-resolution\fR=\fIXORG_RESOLUTION\fR | \fBxorg\-resolution\fR=\fIXORG_RESOLUTION\fR" 4
 Allows to set xorg resolution instead of autodetecting it.
 .IP "\fBlive\-config.hooks\fR=\fIURL1\fR|\fIURL2\fR| ... |\fIURLn\fR | \fBhooks\fR=\fIURL1\fR|\fIURL2\fR| ... |\fIURLn\fR" 4
-Allows to fetch and execute one or more arbitrary files. Note that the URLs must be fetchable by wget (http, ftp or file://), the files are executed in /tmp of the running live system, and that the files needs their dependencies, if any, already installed, e.g. if a python script should be executed the system needs python installed. Some hooks for some common use-cases are available at <\fIhttp://live.debian.net/other/hooks\fR>.
+Allows to fetch and execute one or more arbitrary files. Note that the URLs must be fetchable by wget (http, ftp or file://), the files are executed in /tmp of the running live system, and that the files needs their dependencies, if any, already installed, e.g. if a python script should be executed the system needs python installed. Some hooks for some common use-cases are available at /usr/share/doc/live-config/examples/hooks/ and <\fIhttp://live.debian.net/other/hooks\fR>.
 .br
 If the file is placed on the live media, it can be fetched with file:///live/image/\fIFILE\fR, or with file:///\fIFILE\fR if it is in the root filesystem of the live system itself.
 
diff --git a/manpages/fr/live-config.fr.7 b/manpages/fr/live-config.fr.7
index 40fdd2d..9fdd749 100644
--- a/manpages/fr/live-config.fr.7
+++ b/manpages/fr/live-config.fr.7
@@ -104,7 +104,8 @@ système live, et que les dépendances éventuelles des fichiers doivent être
 préalablement installées; si vous devez en effet exécuter un script python,
 vous devez préalablement installer sur le système l'interpréteur
 python. Quelques modèles (hooks) pour certains cas d'utilisation sont
-proposés sur <\fIhttp://live.debian.net/other/hooks\fP>.
+proposés dans /usr/share/doc/live\-config/examples/hooks/ et sur
+<\fIhttp://live.debian.net/other/hooks\fP>.
 .br
 Si le fichier est placé dans le média live, il peut être utilisé avec
 file:///live/image/\fIFILE\fP, ou bien avec file:///\fIFILE\fP s'il n'est pas
diff --git a/manpages/po/de/live-config.7.po b/manpages/po/de/live-config.7.po
index 57df851..5d021f8 100644
--- a/manpages/po/de/live-config.7.po
+++ b/manpages/po/de/live-config.7.po
@@ -5,7 +5,7 @@
 msgid ""
 msgstr ""
 "Project-Id-Version: live-config 2.0~a14\n"
-"POT-Creation-Date: 2010-07-16 03:55+0300\n"
+"POT-Creation-Date: 2010-07-16 20:16+0300\n"
 "PO-Revision-Date: 2010-05-24 09:59+0300\n"
 "Last-Translator: Daniel Baumann <daniel at debian.org>\n"
 "Language-Team: none\n"
@@ -375,7 +375,8 @@ msgid ""
 "tmp of the running live system, and that the files needs their dependencies, "
 "if any, already installed, e.g. if a python script should be executed the "
 "system needs python installed. Some hooks for some common use-cases are "
-"available at E<lt>I<http://live.debian.net/other/hooks>E<gt>."
+"available at /usr/share/doc/live-config/examples/hooks/ and E<lt>I<http://"
+"live.debian.net/other/hooks>E<gt>."
 msgstr ""
 "Ermöglicht eine oder mehrere beliebige Dateien herunterzuladen und "
 "auszuführen. Die URLs müssen durch wget (http, ftp oder file://) aufösbar "
@@ -383,8 +384,8 @@ msgstr ""
 "es müssen alle Abhängigkeiten, die für das Ausführen der Dateien notwendig "
 "sind,bereits installiert sein, zum Beispiel muss für ein Python Skript "
 "bereits Python auf dem System installiert sein. Einige Hooks für häufige "
-"Anwendungsfälle sind unter  E<lt>I<http://live.debian.net/other/hooks>E<gt> "
-"verfügbar."
+"Anwendungsfälle sind in /usr/share/doc/live-config/examples/hooks/ und "
+"unter  E<lt>I<http://live.debian.net/other/hooks>E<gt> verfügbar."
 
 #. type: Plain text
 #: en/live-config.7:65
diff --git a/manpages/po/fr/live-config.7.po b/manpages/po/fr/live-config.7.po
index 7a1883a..c7c95a7 100644
--- a/manpages/po/fr/live-config.7.po
+++ b/manpages/po/fr/live-config.7.po
@@ -5,7 +5,7 @@
 msgid ""
 msgstr ""
 "Project-Id-Version: live-config 2.0~a14\n"
-"POT-Creation-Date: 2010-07-16 03:55+0300\n"
+"POT-Creation-Date: 2010-07-16 20:16+0300\n"
 "PO-Revision-Date: 2010-05-24 09:59+0300\n"
 "Last-Translator: Thierry Lépicier <thierry.lepicier at free.fr>\n"
 "Language-Team: none\n"
@@ -379,7 +379,8 @@ msgid ""
 "tmp of the running live system, and that the files needs their dependencies, "
 "if any, already installed, e.g. if a python script should be executed the "
 "system needs python installed. Some hooks for some common use-cases are "
-"available at E<lt>I<http://live.debian.net/other/hooks>E<gt>."
+"available at /usr/share/doc/live-config/examples/hooks/ and E<lt>I<http://"
+"live.debian.net/other/hooks>E<gt>."
 msgstr ""
 "Permet de soumettre et d'exécuter un ou plusieurs fichiers/scripts "
 "spécifiques. Notez que les URLs doivent pouvoir être utilisées par wget "
@@ -387,8 +388,9 @@ msgstr ""
 "système live, et que les dépendances éventuelles des fichiers doivent être "
 "préalablement installées; si vous devez en effet exécuter un script python, "
 "vous devez préalablement installer sur le système l'interpréteur python. "
-"Quelques modèles (hooks) pour certains cas d'utilisation sont proposés sur "
-"E<lt>I<http://live.debian.net/other/hooks>E<gt>."
+"Quelques modèles (hooks) pour certains cas d'utilisation sont proposés dans /"
+"usr/share/doc/live-config/examples/hooks/ et sur E<lt>I<http://live.debian."
+"net/other/hooks>E<gt>."
 
 #. type: Plain text
 #: en/live-config.7:65
diff --git a/manpages/pot/live-config.7.pot b/manpages/pot/live-config.7.pot
index 974c0d2..dfea534 100644
--- a/manpages/pot/live-config.7.pot
+++ b/manpages/pot/live-config.7.pot
@@ -7,7 +7,7 @@
 msgid ""
 msgstr ""
 "Project-Id-Version: live-config VERSION\n"
-"POT-Creation-Date: 2010-07-16 03:55+0300\n"
+"POT-Creation-Date: 2010-07-16 20:16+0300\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
 "Language-Team: LANGUAGE <LL at li.org>\n"
@@ -328,7 +328,8 @@ msgid ""
 "tmp of the running live system, and that the files needs their dependencies, "
 "if any, already installed, e.g. if a python script should be executed the "
 "system needs python installed. Some hooks for some common use-cases are "
-"available at E<lt>I<http://live.debian.net/other/hooks>E<gt>."
+"available at /usr/share/doc/live-config/examples/hooks/ and E<lt>I<http://"
+"live.debian.net/other/hooks>E<gt>."
 msgstr ""
 
 #. type: Plain text

-- 
live-config



More information about the debian-live-changes mailing list