Reading configuration file from filesystem and live-media at runtime too.
authorDaniel Baumann <daniel@debian.org>
Tue, 14 Aug 2012 18:50:43 +0000 (20:50 +0200)
committerDaniel Baumann <daniel@debian.org>
Tue, 14 Aug 2012 18:50:43 +0000 (20:50 +0200)
scripts/boot.sh

index c031f00..11e8094 100755 (executable)
@@ -2,6 +2,16 @@
 
 # set -e
 
+# Reading configuration file from filesystem and live-media
+for _FILE in /etc/live/boot.conf /etc/live/boot/* \
+            /live/image/live/boot.conf /live/image/live/boot/*
+do
+       if [ -e "${_FILE}" ]
+       then
+               . "${_FILE}"
+       fi
+done
+
 for _SCRIPT in /lib/live/boot/????-*
 do
        if [ -e "${_SCRIPT}" ]