summaryrefslogtreecommitdiff
path: root/scripts/gen_initramfs_list.sh
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2008-04-02 16:50:05 +0400
committerSam Ravnborg <sam@uranus.ravnborg.org>2008-04-29 00:50:51 +0400
commitb5a5e4c73228e1c5f646ee2524f5e13ae5f08b4d (patch)
tree203d01fe0680a8ad223b437247e6865c6173599d /scripts/gen_initramfs_list.sh
parent01dee1881d7cbcd5c456735085e52de94da8d4e1 (diff)
downloadlinux-b5a5e4c73228e1c5f646ee2524f5e13ae5f08b4d.tar.xz
kbuild: fix unportability in gen_initramfs_list.sh
On a Mac OS X machine the output of ls -l is different from a standard Linux machine. Use readlink instead of parsing a hardcoded field number from the ls output. Signed-off-by: Felix Fietkau <nbd@openwrt.org> Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'scripts/gen_initramfs_list.sh')
-rw-r--r--scripts/gen_initramfs_list.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/gen_initramfs_list.sh b/scripts/gen_initramfs_list.sh
index 684fb9cdc055..5f3415f28736 100644
--- a/scripts/gen_initramfs_list.sh
+++ b/scripts/gen_initramfs_list.sh
@@ -135,7 +135,7 @@ parse() {
str="${ftype} ${name} ${str} ${dev} ${maj} ${min}"
;;
"slink")
- local target=`field 11 $(LC_ALL=C ls -l "${location}")`
+ local target=`readlink "${location}"`
str="${ftype} ${name} ${target} ${str}"
;;
*)