From: Rob Landley There's a symlink from awk to gawk if you're using the gnu tools, but no symlink from gawk to awk if you're using BusyBox or some such. (There's a reason for the existence of standard names. Can we use them please?) Signed-off-by: Rob Landley Acked-by: Sam Ravnborg Signed-off-by: Andrew Morton --- scripts/gen_initramfs_list.sh | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff -puN scripts/gen_initramfs_list.sh~sed-s-gawk-awk-scripts-gen_init_ramfssh scripts/gen_initramfs_list.sh --- a/scripts/gen_initramfs_list.sh~sed-s-gawk-awk-scripts-gen_init_ramfssh +++ a/scripts/gen_initramfs_list.sh @@ -121,9 +121,9 @@ parse() { "nod") local dev_type= local maj=$(LC_ALL=C ls -l "${location}" | \ - gawk '{sub(/,/, "", $5); print $5}') + awk '{sub(/,/, "", $5); print $5}') local min=$(LC_ALL=C ls -l "${location}" | \ - gawk '{print $6}') + awk '{print $6}') if [ -b "${location}" ]; then dev_type="b" @@ -134,7 +134,7 @@ parse() { ;; "slink") local target=$(LC_ALL=C ls -l "${location}" | \ - gawk '{print $11}') + awk '{print $11}') str="${ftype} ${name} ${target} ${str}" ;; *) _