1
0
forked from pool/kernel-source
Michal Marek 2011-10-04 05:02:05 +00:00 committed by Git OBS Bridge
parent 710d8269c6
commit 7791d1532f

View File

@ -1,13 +0,0 @@
relink() {
if [ -h "$2" ]; then
local old=$(readlink "$2")
[ "$old" = "$1" ] && return 0
echo "Changing symlink $2 from $old to $1"
elif [ -e "$2" ]; then
echo "Replacing file $2 with symlink to $1"
fi
rm -f "$2" \
&& ln -s "$1" "$2"
}
relink linux-@KERNELRELEASE@@SRCVARIANT@ /usr/src/linux@SRCVARIANT@