> AWK=`readlink -f /usr/bin/awk`
> awk=/usr/bin/awk
> [ "$AWK" ==  "/usr/bin/gawk" ] || die "$awk is not a symlink to gawk"

some distros started to drop the /usr hierarchy

the script should be a little smarter to accept the files not only in 
/usr/bin but just anywhere in $PATH

something like

awk=$( which awk )
AWK=$( readlink -f "${awk}" )
[ "${AWK%%\/gawk}" == "${AWK}" ] && die...


tobias


-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to