Updating kernel images number when installing them into live media.

This commit is contained in:
Daniel Baumann 2010-09-16 16:19:46 +02:00
parent 57b585272f
commit 5acc7b4807
1 changed files with 1 additions and 2 deletions

View File

@ -96,10 +96,9 @@ Syslinux_live_entry ()
case "${LB_BINARY_IMAGES}" in
iso*|usb*)
NUMBER="$(ls -1 ${KERNEL_PATH} | grep 'vmlinuz-' | wc -l)"
NUMBER="$((${NUMBER} +1))"
# Do not add numbering to filenames if first kernel/initrd
if [ "${NUMBER}" = "1" ]
if [ "${NUMBER}" = "2" ]
then
NUMBER=""
fi