Skip to content

Commit

Permalink
kbuild: fix unportability in gen_initramfs_list.sh
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Felix Fietkau authored and Sam Ravnborg committed Apr 28, 2008
1 parent 01dee18 commit b5a5e4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/gen_initramfs_list.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
;;
*)
Expand Down

0 comments on commit b5a5e4c

Please sign in to comment.