Commit 6d08640f authored by Andreas Schneider's avatar Andreas Schneider

tools: Allow the dt-gen-noiseprofile to be symlinked

parent d04269b9
......@@ -2,8 +2,21 @@
set -e
scriptname=$(basename $0)
scriptdir=$(cd $(dirname $0) && pwd)
script="$0"
count=0
while [ -L "${script}" ]
do
script=$(readlink ${script})
count=$(expr ${count} + 1)
if [ ${count} -gt 100 ]
then
echo "Too many symbolic links"
exit 1
fi
done
scriptdir=$(dirname ${script})
scriptname=$(basename ${script})
. "$scriptdir/subr.sh"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment