Unverified Commit 77a5624b authored by Andreas Schneider's avatar Andreas Schneider Committed by Tobias Ellinghaus

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

(cherry picked from commit 6d08640f)
parent 07b4fbf9
......@@ -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