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 MODULES_PATH_ROOT_DIFF_=""
7 MODULES_PATH_="/lib/modules"
9 KERNEL_VERSION_=`uname -r`
11 if [ -e /lib/live/mount/medium ] ; then
12 MOUNT_POINT_="/lib/live/mount/medium" # since around December 2012
13 elif [ -e '/live/image' ]; then
14 MOUNT_POINT_="/live/image" # until around December 2012
16 MOUNT_POINT_="/cdrom" # very old
19 # assume we have a grml2usb system
20 if [ -d "$MOUNT_POINT_"/boot/release ] ; then
21 DATA_PATH_="$MOUNT_POINT_/boot/release"
22 else # no grml2usb but running from CD
23 DATA_PATH_="$MOUNT_POINT_/boot"
27 if [ -d "$MOUNT_POINT_"/boot/syslinux ] ; then
28 ISOLIN_PATH_="$MOUNT_POINT_/boot/syslinux"
29 test -d $ISOLIN_PATH_ || ISOLIN_PATH_="$MOUNT_POINT_"
31 ISOLIN_PATH_="$DATA_PATH_/isolinux"
32 test -d $ISOLIN_PATH_ || ISOLIN_PATH_="$MOUNT_POINT_"
36 if [[ "$(find $MOUNT_POINT_ -maxdepth 3 -name memtest |head -n1)" != "" ]] ; then
37 ADDONS_PATH_="$(dirname $(find $MOUNT_POINT_ -maxdepth 3 -name memtest |head -n1))"
40 if [[ $ADDONS_PATH_ == "" ]]; then
41 ADDONS_PATH_="$MOUNT_POINT_"
44 if [[ "$(find $DATA_PATH_/ -maxdepth 2 -name vmlinuz |head -n1)" != "" ]] ; then
45 MULTIBOOT_PATH_="$(dirname $(find $DATA_PATH_ -maxdepth 2 -name vmlinuz |head -n1))"
47 MULTIBOOT_PATH_="$MOUNT_POINT_"
50 if [[ $MULTIBOOT_PATH_ == "" ]]; then
51 MULTIBOOT_PATH_="$MOUNT_POINT_"
54 KERNEL_IMAGE_="$MULTIBOOT_PATH_/vmlinuz"
56 if [[ ! -f "$KERNEL_IMAGE_" ]] ; then
57 KERNEL_IMAGE_="/boot/vmlinuz-$KERNEL_VERSION_"
60 ORIGINAL_INITRD_="$MULTIBOOT_PATH_/initrd.img"
62 MEMTEST_IMAGE_="$ADDONS_PATH_/memtest"
63 if [ ! -f "$MEMTEST_IMAGE_" ] ; then
64 MEMTEST_IMAGE_=$(find /boot -name memtest*.bin | head -n1)
67 PXE_BOOT_MSG_="$ISOLIN_PATH_/boot.msg"
68 # grml2usb with grub doesn't provide boot.msg, so generate a default one
69 if ! [ -f "$PXE_BOOT_MSG_" ] ; then
70 PXE_BOOT_MSG_="$(mktemp)"
71 cat > $PXE_BOOT_MSG_ << EOF
74 Some information and boot options available via keys F2 - F10. http://grml.org/
79 PXE_BOOT_LOGO_="$ISOLIN_PATH_/logo.16"