* List the largest rootfs first based on the assumption that contains
  the most out-of-box experience.

Signed-off-by: Jacob Stiffler <[email protected]>
---
 create-sdcard.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/create-sdcard.sh b/create-sdcard.sh
index 39d8af1..5c02a12 100644
--- a/create-sdcard.sh
+++ b/create-sdcard.sh
@@ -767,11 +767,11 @@ cat << EOM
 
################################################################################
 
 EOM
-               ls $ROOTFILEPARTH | grep "tisdk.*rootfs" | grep 'tar.xz' | grep 
-n '' | awk {'print "   " , $1'}
+               ls --sort=size $ROOTFILEPARTH | grep "tisdk.*rootfs" | grep 
'tar.xz' | grep -n '' | awk {'print "       " , $1'}
                echo ""
                read -p "Enter Number of rootfs Tarball: " TARNUMBER
                echo " "
-               FOUNDTARFILENAME=`ls $ROOTFILEPARTH | grep "rootfs" | grep 
'tar.xz' | grep -n '' | grep "${TARNUMBER}:" | cut -c3- | awk {'print$1'}`
+               FOUNDTARFILENAME=`ls --sort=size $ROOTFILEPARTH | grep "rootfs" 
| grep 'tar.xz' | grep -n '' | grep "${TARNUMBER}:" | cut -c3- | awk 
{'print$1'}`
                ROOTFSTAR=$FOUNDTARFILENAME
 
        else
-- 
1.9.1

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

Reply via email to