summaryrefslogtreecommitdiffstats
path: root/lsinitcpio
diff options
context:
space:
mode:
Diffstat (limited to 'lsinitcpio')
-rwxr-xr-xlsinitcpio7
1 files changed, 6 insertions, 1 deletions
diff --git a/lsinitcpio b/lsinitcpio
index c1c5e21..5f19326 100755
--- a/lsinitcpio
+++ b/lsinitcpio
@@ -69,7 +69,7 @@ size_to_human() {
}
detect_filetype() {
- case $(hexdump -n 6 -e '"%c"' "$1") in
+ case $(hexdump -n 6 -e '"%c"' "$1") in
'070701')
# no compression
return
@@ -90,6 +90,11 @@ detect_filetype() {
return
fi
+ if [[ $(hexdump -n 4 -e '"%x"' "$1") == '184d2204' ]]; then
+ echo 'lz4'
+ return
+ fi
+
if [[ $(hexdump -n 3 -e '"%c"' "$1") == 'BZh' ]]; then
echo 'bzip2'
return