From 4fd880f8d6ba7746031a201caa46e703d2de2b77 Mon Sep 17 00:00:00 2001 From: Stelios Koroneos Date: Thu, 26 Jul 2007 14:59:27 +0000 Subject: [PATCH] classes/magicbox-image.bbclass : Fix a problem with "tail" which failed during fs creation for magicbox --- classes/magicbox-image.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/magicbox-image.bbclass b/classes/magicbox-image.bbclass index 05de28b76b..c75e69cac2 100644 --- a/classes/magicbox-image.bbclass +++ b/classes/magicbox-image.bbclass @@ -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 -- 2.39.5