1 # this are the program default vars for the user configurable variables
2 # !!! DO NOT EDIT THIS FILE !!!
3 # /etc/grml/terminalserver/config is what you are searching for
5 if [ -e /lib/live/mount/medium ] ; then
6 MOUNT_POINT_="/lib/live/mount/medium" # since around December 2012
7 elif [ -e '/live/image' ]; then
8 MOUNT_POINT_="/live/image" # until around December 2012
10 MOUNT_POINT_="/cdrom" # very old
13 # assume we have a grml2usb system
14 if [ -d "$MOUNT_POINT_"/boot/release ] ; then
15 DATA_PATH_="$MOUNT_POINT_/boot/release"
16 else # no grml2usb but running from CD
17 DATA_PATH_="$MOUNT_POINT_/boot"
21 if [ -d "$MOUNT_POINT_"/boot/syslinux ] ; then
22 ISOLIN_PATH_="$MOUNT_POINT_/boot/syslinux"
23 test -d $ISOLIN_PATH_ || ISOLIN_PATH_="$MOUNT_POINT_"
25 ISOLIN_PATH_="$DATA_PATH_/isolinux"
26 test -d $ISOLIN_PATH_ || ISOLIN_PATH_="$MOUNT_POINT_"
30 if [[ "$(find $MOUNT_POINT_ -maxdepth 3 -name memtest |head -n1)" != "" ]] ; then
31 ADDONS_PATH_="$(dirname $(find $MOUNT_POINT_ -maxdepth 3 -name memtest |head -n1))"
34 if [[ $ADDONS_PATH_ == "" ]]; then
35 ADDONS_PATH_="$MOUNT_POINT_"
38 if [[ "$(find $DATA_PATH_/ -maxdepth 2 -name vmlinuz |head -n1)" != "" ]] ; then
39 MULTIBOOT_PATH_="${DATA_PATH_}"
41 MULTIBOOT_PATH_="$MOUNT_POINT_"
44 if [[ $MULTIBOOT_PATH_ == "" ]]; then
45 MULTIBOOT_PATH_="$MOUNT_POINT_"
48 MEMTEST_IMAGE_="$ADDONS_PATH_/memtest"
49 if [ ! -f "$MEMTEST_IMAGE_" ] ; then
50 MEMTEST_IMAGE_=$(find /boot -name memtest*.bin | head -n1)
53 PXE_BOOT_MSG_="$ISOLIN_PATH_/boot.msg"
54 # grml2usb with grub doesn't provide boot.msg, so generate a default one
55 if ! [ -f "$PXE_BOOT_MSG_" ] ; then
56 PXE_BOOT_MSG_="$(mktemp)"
57 cat > $PXE_BOOT_MSG_ << EOF
60 Some information and boot options available via keys F2 - F10. http://grml.org/
65 PXE_BOOT_LOGO_="$ISOLIN_PATH_/logo.16"