grml2ram: fix usage of LIVECD_PATH variable together with MEDIA_PATH
authorMichael Prokop <mika@grml.org>
Mon, 14 Jan 2013 13:00:46 +0000 (14:00 +0100)
committerMichael Prokop <mika@grml.org>
Mon, 14 Jan 2013 13:00:46 +0000 (14:00 +0100)
usr_sbin/grml2ram

index 16bf33c..37c36a3 100755 (executable)
@@ -52,7 +52,7 @@ getbootparam(){
 MEDIA_PATH="$(getbootparam live-media-path)"
 MEDIA_PATH="${MEDIA_PATH:-.}"
 
-IMAGE=$(find $LIVECD_PATH/${MEDIA_PATH}/ -name *.squashfs 2>/dev/null | head -1)
+IMAGE=$(find ${LIVECD_PATH}/${MEDIA_PATH}/ -name *.squashfs 2>/dev/null | head -1)
 if ! [ -r "$IMAGE" ] ; then
    if [ -r /cdrom/GRML/GRML ] ; then
       IMAGE='/cdrom/GRML/GRML'