From 916ee6c9755ec9402f0aea8ecaa93e78de4ff2f0 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Thu, 16 Sep 2010 16:19:46 +0200 Subject: Updating kernel images number when installing them into live media. --- scripts/build/lb_binary_syslinux | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/build/lb_binary_syslinux b/scripts/build/lb_binary_syslinux index c5f53bfa5..c869f5fb8 100755 --- a/scripts/build/lb_binary_syslinux +++ b/scripts/build/lb_binary_syslinux @@ -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 -- cgit v1.2.3