X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=scripts%2Fgen_initramfs_list.sh;h=331c079f029b7c516fe4c32510d445defc3a6c53;hb=3aa590c6b7c89d844f81c2e96f295cf2c6967773;hp=56b3bed1108f4132b297eee6dbc5255ce81d028c;hpb=7c8ce71b092425f1e938285cab2a679c09444d9b;p=linux-2.6-omap-h63xx.git diff --git a/scripts/gen_initramfs_list.sh b/scripts/gen_initramfs_list.sh index 56b3bed1108..331c079f029 100644 --- a/scripts/gen_initramfs_list.sh +++ b/scripts/gen_initramfs_list.sh @@ -200,7 +200,11 @@ input_file() { print_mtime "$1" >> ${output} cat "$1" >> ${output} else - grep ^file "$1" | cut -d ' ' -f 3 + cat "$1" | while read type dir file perm ; do + if [ "$type" == "file" ]; then + echo "$file \\"; + fi + done fi elif [ -d "$1" ]; then dir_filelist "$1"