diff options
-rwxr-xr-x | tools/ak2-core.sh | 4 |
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"; |