Reading configuration file from filesystem and live-media at runtime too.
[live-boot-grml.git] / scripts / boot.sh
1 #!/bin/sh
2
3 # set -e
4
5 # Reading configuration file from filesystem and live-media
6 for _FILE in /etc/live/boot.conf /etc/live/boot/* \
7              /live/image/live/boot.conf /live/image/live/boot/*
8 do
9         if [ -e "${_FILE}" ]
10         then
11                 . "${_FILE}"
12         fi
13 done
14
15 for _SCRIPT in /lib/live/boot/????-*
16 do
17         if [ -e "${_SCRIPT}" ]
18         then
19                 . ${_SCRIPT}
20         fi
21 done