AK2: fix repacked ramdisk check now that compext is local to repack_ramdisk

Thanks eng.stk for reporting and testing the fix
This commit is contained in:
osm0sis committed 2018-07-16 23:16:26 -03:00
1 parent 01bf828e78
commit 0b8b09f29e
1 file changed
+2 -2
+2 -2
View File
@@ -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";