From: Tim 'timtim' Ellis Date: Sat, 17 Jan 2009 20:00:56 +0000 (+0000) Subject: n2100-image.bbclass: Fix usage of tail so image post works X-Git-Tag: Release-2010-05/1~4296 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=55aced4665ad98cf7996f72ccfbbd2c35f60a209;p=openembedded.git n2100-image.bbclass: Fix usage of tail so image post works --- diff --git a/classes/n2100-image.bbclass b/classes/n2100-image.bbclass index bc6c12e1fb..b74e74c48a 100644 --- a/classes/n2100-image.bbclass +++ b/classes/n2100-image.bbclass @@ -1,6 +1,6 @@ n2100_pack_image() { # find latest kernel - KERNEL=`ls -tr ${DEPLOY_DIR_IMAGE}/zImage* | tail -1` + KERNEL=`ls -tr ${DEPLOY_DIR_IMAGE}/zImage* | tail -n 1` if [ -z "$KERNEL" ]; then oefatal "No kernel found in ${DEPLOY_DIR_IMAGE}. Bitbake linux to create one." exit 1