+# check for available RAM
+# check for bootoption small and/or grml-small
+if [ -n "$FOUNDMEM" ] ; then
+ if [ "$GRML_TYPE" = "small" ] ; then
+ if [ "$FOUNDMEM" -lt 25000 ] ; then
+ log_begin_msg "Bootoption *small detected, but you need at least 32MB of RAM available." ; echo " $FAILED"
+ log_begin_msg "Dropping you to a shell, continue on your own risk." ; echo " $FAILED"
+ /bin/bash
+ fi
+ else
+ if [ "$FOUNDMEM" -lt 58000 ] ; then
+ log_begin_msg "You need at least 64MB of RAM available for grml." ; echo " $FAILED"
+ log_begin_msg "Dropping you to a shell, continue on your own risk." ; echo " $FAILED"
+ /bin/bash
+ fi
+ fi
+fi
+