From 0b8b09f29ee672c553faa78a694727b4a8d34801 Mon Sep 17 00:00:00 2001 From: osm0sis Date: Mon, 16 Jul 2018 23:16:26 -0300 Subject: AK2: fix repacked ramdisk check now that compext is local to repack_ramdisk Thanks eng.stk for reporting and testing the fix --- tools/ak2-core.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools') diff --git a/tools/ak2-core.sh b/tools/ak2-core.sh index 74d690c..7b49716 100755 --- a/tools/ak2-core.sh +++ b/tools/ak2-core.sh @@ -217,8 +217,8 @@ flash_boot() { kernel=`ls *-zImage`; kernel=$split_img/$kernel; fi; - if [ -f /tmp/anykernel/ramdisk-new.cpio.$compext ]; then - rd=/tmp/anykernel/ramdisk-new.cpio.$compext; + if [ -f /tmp/anykernel/ramdisk-new.cpio.* ]; then + rd=`echo /tmp/anykernel/ramdisk-new.cpio.*`; else rd=`ls *-ramdisk.*`; rd="$split_img/$rd"; -- cgit v1.2.3