projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
72ee59b
)
kbuild: fix gen_initramfs_list.sh
author
Sam Ravnborg
<sam@mars.ravnborg.org>
Sun, 30 Apr 2006 21:56:33 +0000
(23:56 +0200)
committer
Sam Ravnborg
<sam@mars.ravnborg.org>
Sun, 30 Apr 2006 21:56:33 +0000
(23:56 +0200)
Create correct dependencies when specifying your own file with
list of files etc. to include in initramfs.
Reported by: Andre Noll <maan@skl-net.de>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
scripts/gen_initramfs_list.sh
patch
|
blob
|
history
diff --git
a/scripts/gen_initramfs_list.sh
b/scripts/gen_initramfs_list.sh
index 56b3bed1108f4132b297eee6dbc5255ce81d028c..331c079f029b7c516fe4c32510d445defc3a6c53 100644
(file)
--- 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"