提交 b5a5e4c7 编写于 作者: F Felix Fietkau 提交者: Sam Ravnborg

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: NFelix Fietkau <nbd@openwrt.org>
Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
上级 01dee188
......@@ -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}"
;;
*)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册