1 2 3 4 5 6 7 8 9 10 11 12 13 14
#!/bin/sh usage() { echo "Usage: $(basename $0) <initramfs file>" exit 1 } [ $# -eq 0 ] && usage for i in $*; do echo $i zcat $i | cpio --extract --verbose --quiet --list done