From 6c09d42d90aa27784a29bc0411daed26cf6ab033 Mon Sep 17 00:00:00 2001 From: Adam Conrad Date: Wed, 14 Dec 2005 11:46:37 +0000 Subject: [PATCH] Fix check for multiple kernel versions --- livecd.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/livecd.sh b/livecd.sh index 487220e4..cf798258 100755 --- a/livecd.sh +++ b/livecd.sh @@ -283,7 +283,8 @@ deb-src ${SECSRCMIRROR} ${STE}-security ${COMP} chroot ${ROOT} update-initramfs -k "${KVER}" -u cp ${ROOT}/boot/initrd.img-"${KVER}" livecd.${FS}.initrd-"${SUBARCH}" done - if [ "${KVERS% *}" = "$KVERS" ]; then + NUMKVERS="$(set -- $KVERS; echo $#)" + if [ "$NUMKVERS" = 1 ]; then # only one kernel SUBARCH="${KVERS#*-*-}" ln -s livecd.${FS}.initrd-"${SUBARCH}" livecd.${FS}.initrd