summaryrefslogtreecommitdiff
path: root/scripts/build/lb_binary_syslinux
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2010-09-16 16:19:46 +0200
committerDaniel Baumann <daniel@debian.org>2011-03-09 19:17:23 +0100
commit916ee6c9755ec9402f0aea8ecaa93e78de4ff2f0 (patch)
tree7a6afcdfa597f1e2c28d76717eb3438547d4ad49 /scripts/build/lb_binary_syslinux
parent4a50568daa75b0c543ff527d2c1e22034f4a3a15 (diff)
downloadlive-build-916ee6c9755ec9402f0aea8ecaa93e78de4ff2f0.zip
live-build-916ee6c9755ec9402f0aea8ecaa93e78de4ff2f0.tar.gz
Updating kernel images number when installing them into live media.
Diffstat (limited to 'scripts/build/lb_binary_syslinux')
-rwxr-xr-xscripts/build/lb_binary_syslinux3
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/build/lb_binary_syslinux b/scripts/build/lb_binary_syslinux
index c5f53bf..c869f5f 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