summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorosm0sis <osm0sis@outlook.com>2018-07-16 23:16:26 -0300
committerosm0sis <osm0sis@outlook.com>2018-07-16 23:16:26 -0300
commit0b8b09f29ee672c553faa78a694727b4a8d34801 (patch)
tree99b8dd4c4c0aad1d7e37fc06c28d63bdd06bc98c /tools
parent01bf828e78924807b19ebb707b08f10088734b26 (diff)
AK2: fix repacked ramdisk check now that compext is local to repack_ramdisk
Thanks eng.stk for reporting and testing the fix
Diffstat (limited to 'tools')
-rwxr-xr-xtools/ak2-core.sh4
1 files changed, 2 insertions, 2 deletions
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";