summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2012-08-14 20:50:43 +0200
committerDaniel Baumann <daniel@debian.org>2012-08-14 20:50:43 +0200
commit67853178ea148fb146b417b335252258233c9e10 (patch)
tree114622aa5c4998a501c26786e3bebc89ee80fd2c /scripts
parentcdece4c8e50051e790d657b1ff9f090ed4737907 (diff)
downloadlive-boot-67853178ea148fb146b417b335252258233c9e10.tar.gz
live-boot-67853178ea148fb146b417b335252258233c9e10.zip
Reading configuration file from filesystem and live-media at runtime too.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/boot.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/boot.sh b/scripts/boot.sh
index c031f00..11e8094 100755
--- a/scripts/boot.sh
+++ b/scripts/boot.sh
@@ -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}" ]