2 # Copyright 2012 Daniel Borkmann <borkmann@gnumaniacs.org>
3 # Licensed under GPL version 2
4 usage
="Usage: cpio_manage.sh <unpack|pack> <initramfs.cpio.gz> <out/in dir>";
5 if [ "$#" -lt "3" ]; then
9 if [ "`id -u`" != "0" ]; then
19 find .
-print0 |
cpio -0 -ov -H newc |
gzip -c > $ramfs
21 u|un|unp|unpa|unpac|unpack
)
24 gunzip
-c $ramfs |
cpio -idv -H newc
--no-absolute-filenames