-if grep -q 'small' $target/etc/grml_version ; then
- cp $target/etc/runlevel.conf.livecd.small $target/etc/runlevel.conf
-else
- cp $target/etc/runlevel.conf.livecd $target/etc/runlevel.conf
+# if we have a small ISO let's adjust runlevel.conf:
+if [ -n "$GRML_NAME" ] ; then
+ if echo "$GRML_NAME" | grep -q small ; then
+ cp $target/etc/runlevel.conf.livecd.small $target/etc/runlevel.conf
+ else
+ cp $target/etc/runlevel.conf.livecd $target/etc/runlevel.conf
+ fi