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 '/live/cow' ]; then
12 MOUNT_POINT_="/live/image"
17 # assume we have a grml2usb system
18 if [ -d "$MOUNT_POINT_"/boot/release ] ; then
19 DATA_PATH_="$MOUNT_POINT_/boot/release"
20 else # no grml2usb but running from CD
21 DATA_PATH_="$MOUNT_POINT_/boot"
25 if [ -d "$MOUNT_POINT_"/boot/syslinux ] ; then
26 ISOLIN_PATH_="$MOUNT_POINT_/boot/syslinux"
27 test -d $ISOLIN_PATH_ || ISOLIN_PATH_="$MOUNT_POINT_"
29 ISOLIN_PATH_="$DATA_PATH_/isolinux"
30 test -d $ISOLIN_PATH_ || ISOLIN_PATH_="$MOUNT_POINT_"
34 if [[ "$(find $MOUNT_POINT_ -maxdepth 3 -name memtest |head -n1)" != "" ]] ; then
35 ADDONS_PATH_="$(dirname $(find $MOUNT_POINT_ -maxdepth 3 -name memtest |head -n1))"
38 if [[ $ADDONS_PATH_ == "" ]]; then
39 ADDONS_PATH_="$MOUNT_POINT_"
42 if [[ "$(find $DATA_PATH_/ -maxdepth 2 -name linux26 |head -n1)" != "" ]] ; then
43 MULTIBOOT_PATH_="$(dirname $(find $DATA_PATH_ -maxdepth 2 -name linux26 |head -n1))"
45 MULTIBOOT_PATH_="$MOUNT_POINT_"
48 if [[ $MULTIBOOT_PATH_ == "" ]]; then
49 MULTIBOOT_PATH_="$MOUNT_POINT_"
52 KERNEL_IMAGE_="$MULTIBOOT_PATH_/linux26"
54 if [[ ! -f "$KERNEL_IMAGE_" ]] ; then
55 KERNEL_IMAGE_="/boot/vmlinuz-$KERNEL_VERSION_"
58 ORIGINAL_INITRD_="$MULTIBOOT_PATH_/initrd.gz"
60 MEMTEST_IMAGE_="$ADDONS_PATH_/memtest"
61 if [ ! -f "$MEMTEST_IMAGE_" ] ; then
62 MEMTEST_IMAGE_=$(find /boot -name memtest*.bin | head -n1)
65 PXE_BOOT_MSG_="$ISOLIN_PATH_/boot.msg"
66 # grml2usb with grub doesn't provide boot.msg, so generate a default one
67 if ! [ -f "$PXE_BOOT_MSG_" ] ; then
68 PXE_BOOT_MSG_="$(mktemp)"
69 cat > $PXE_BOOT_MSG_ << EOF
72 Some information and boot options available via keys F2 - F10. http://grml.org/
77 PXE_BOOT_LOGO_="$ISOLIN_PATH_/logo.16"