From: Harald Hoyer Date: Thu, 14 Jan 2010 16:20:43 +0000 (+0100) Subject: add lsinitrd X-Git-Tag: 004~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=074d12c1fad2e80e143f51111e4e3c879ba7904a;p=thirdparty%2Fdracut.git add lsinitrd --- diff --git a/lsinitrd b/lsinitrd new file mode 100755 index 000000000..4221fa8b5 --- /dev/null +++ b/lsinitrd @@ -0,0 +1,11 @@ +#!/bin/bash + +[[ $# -eq 1 ]] || { echo "Usage: $(basename $0) " ; exit 1 ; } +[[ -f $1 ]] || { echo "$1 does not exist" ; exit 1 ; } + +echo "$1:" +echo "========================================================================" +zcat $1 | cpio --extract --verbose --quiet --to-stdout 'dracut-*' 2>/dev/null +echo "========================================================================" +zcat $1 | cpio --extract --verbose --quiet --list +echo "========================================================================"