]> git.openpandora.org Git - openembedded.git/commitdiff
classes/magicbox-image.bbclass : Fix a problem with "tail" which failed during fs...
authorStelios Koroneos <skoroneos@digital-opsis.com>
Thu, 26 Jul 2007 14:59:27 +0000 (14:59 +0000)
committerStelios Koroneos <skoroneos@digital-opsis.com>
Thu, 26 Jul 2007 14:59:27 +0000 (14:59 +0000)
for magicbox

classes/magicbox-image.bbclass

index 05de28b76b393f6770f89fb97f1723d52291fedc..c75e69cac2f179e5c720b5771bfa2cdb0f4b7099 100644 (file)
@@ -1,6 +1,6 @@
 magicbox_gen_images() {
         # find latest kernel
-        KERNEL=`ls -tr ${DEPLOY_DIR_IMAGE}/uImage* | tail -1`
+        KERNEL=`ls -tr ${DEPLOY_DIR_IMAGE}/uImage* | tail -n 1`
         if [ -z "$KERNEL" ]; then
                 oefatal "No kernel found in ${DEPLOY_DIR_IMAGE}. Exiting !"
                 exit 1