Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

file 81 lines (61 sloc) 2.071 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81
# this are the program default vars for the user configurable variables
# !!! DO NOT EDIT THIS FILE !!!
# /etc/grml/terminalserver/config is what you are searching for

MODULES_PATH_ROOT_DIFF_=""

MODULES_PATH_="/lib/modules"

KERNEL_VERSION_=`uname -r`

if [ -e '/live/image' ]; then
  MOUNT_POINT_="/live/image"
else
  MOUNT_POINT_="/cdrom"
fi

# assume we have a grml2usb system
if [ -d "$MOUNT_POINT_"/boot/release ] ; then
  DATA_PATH_="$MOUNT_POINT_/boot/release"
else # no grml2usb but running from CD
  DATA_PATH_="$MOUNT_POINT_/boot"
fi

# new grml2usb layout
if [ -d "$MOUNT_POINT_"/boot/syslinux ] ; then
  ISOLIN_PATH_="$MOUNT_POINT_/boot/syslinux"
  test -d $ISOLIN_PATH_ || ISOLIN_PATH_="$MOUNT_POINT_"
else # old layout
  ISOLIN_PATH_="$DATA_PATH_/isolinux"
  test -d $ISOLIN_PATH_ || ISOLIN_PATH_="$MOUNT_POINT_"
fi

# addons
if [[ "$(find $MOUNT_POINT_ -maxdepth 3 -name memtest |head -n1)" != "" ]] ; then
  ADDONS_PATH_="$(dirname $(find $MOUNT_POINT_ -maxdepth 3 -name memtest |head -n1))"
fi

if [[ $ADDONS_PATH_ == "" ]]; then
  ADDONS_PATH_="$MOUNT_POINT_"
fi

if [[ "$(find $DATA_PATH_/ -maxdepth 2 -name vmlinuz |head -n1)" != "" ]] ; then
  MULTIBOOT_PATH_="$(dirname $(find $DATA_PATH_ -maxdepth 2 -name vmlinuz |head -n1))"
else
  MULTIBOOT_PATH_="$MOUNT_POINT_"
fi

if [[ $MULTIBOOT_PATH_ == "" ]]; then
  MULTIBOOT_PATH_="$MOUNT_POINT_"
fi

KERNEL_IMAGE_="$MULTIBOOT_PATH_/vmlinuz"

if [[ ! -f "$KERNEL_IMAGE_" ]] ; then
  KERNEL_IMAGE_="/boot/vmlinuz-$KERNEL_VERSION_"
fi

ORIGINAL_INITRD_="$MULTIBOOT_PATH_/initrd.img"

MEMTEST_IMAGE_="$ADDONS_PATH_/memtest"
if [ ! -f "$MEMTEST_IMAGE_" ] ; then
  MEMTEST_IMAGE_=$(find /boot -name memtest*.bin | head -n1)
fi

PXE_BOOT_MSG_="$ISOLIN_PATH_/boot.msg"
# grml2usb with grub doesn't provide boot.msg, so generate a default one
if ! [ -f "$PXE_BOOT_MSG_" ] ; then
  PXE_BOOT_MSG_="$(mktemp)"
  cat > $PXE_BOOT_MSG_ << EOF
17 logo.16

Some information and boot options available via keys F2 - F10. http://grml.org/

EOF
fi

PXE_BOOT_LOGO_="$ISOLIN_PATH_/logo.16"

IPTABLES_SNAT_="true"

# EOF
Something went wrong with that request. Please try again.