diff options
author | Daniel Baumann <daniel@debian.org> | 2010-09-16 16:19:46 +0200 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 19:17:23 +0100 |
commit | 916ee6c9755ec9402f0aea8ecaa93e78de4ff2f0 (patch) | |
tree | 7a6afcdfa597f1e2c28d76717eb3438547d4ad49 /scripts/build/lb_binary_syslinux | |
parent | 4a50568daa75b0c543ff527d2c1e22034f4a3a15 (diff) | |
download | live-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-x | scripts/build/lb_binary_syslinux | 3 |
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 |