Fix typo in mkboot script - minor problem.

This commit is contained in:
2014-10-04 10:20:54 -04:00
parent 35ccef5bc8
commit 73f65ac74c

View File

@@ -142,10 +142,10 @@ if [ ! -z $mkboot_from_dir ]; then
pout "\n****** HAZARD ******* HAZARD ******* HAZARD ******\n"
exit
fi
if [ $compression_type == "gzip" ]; then
if [ $compression_type == "lzma" ]; then
if [ $compression_type == "lz4" ]; then
if [ $compression_type == "xz" ]; then
if [ $compression_type != "gzip" ]; then
if [ $compression_type != "lzma" ]; then
if [ $compression_type != "lz4" ]; then
if [ $compression_type != "xz" ]; then
pout "\nRamdisk is unknown format. Can't repack ramdisk."
exit 0
else
@@ -356,7 +356,7 @@ case $compression_type in
lz4) compression_ext=lz4; decomp_ramdisk="$lz4 -d"; extra="< ../ramdisk.cpio";;
esac;
if [ $compression_ext != "lz4" ]; then
if [[ $compression_ext != lz4 ]]; then
decomp_ramdisk="$compression_type -d -c"
fi
decomp_ramdisk2="$cpio -i -d -m --no-absolute-filenames"