summaryrefslogtreecommitdiffstats
path: root/os-plugins/plugins
diff options
context:
space:
mode:
authorBastian Wissler2008-11-18 15:55:08 +0100
committerBastian Wissler2008-11-18 15:55:08 +0100
commitc7027f284fa5b3d5bf4be388595a22ce357f8d8d (patch)
tree7353e93f873ceb6c5bbe3ae1fa60cd8bb45dfdd9 /os-plugins/plugins
parent * typo (diff)
downloadcore-c7027f284fa5b3d5bf4be388595a22ce357f8d8d.tar.gz
core-c7027f284fa5b3d5bf4be388595a22ce357f8d8d.tar.xz
core-c7027f284fa5b3d5bf4be388595a22ce357f8d8d.zip
xserver: * some fix to the linkage skript -> "/usr/X11R6/lib"-files are handled right now.
git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2387 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'os-plugins/plugins')
-rwxr-xr-xos-plugins/plugins/xserver/files/linkage.sh16
1 files changed, 13 insertions, 3 deletions
diff --git a/os-plugins/plugins/xserver/files/linkage.sh b/os-plugins/plugins/xserver/files/linkage.sh
index 16b609bb..61eb2d6e 100755
--- a/os-plugins/plugins/xserver/files/linkage.sh
+++ b/os-plugins/plugins/xserver/files/linkage.sh
@@ -72,6 +72,14 @@ divert() {
# strip leading /usr/lib/ - name for /var/X11R6/lib
stripstr ${rlib} ${RR}
divname=${VAL}
+ rootname=${RR}
+ if [ "${VAL}" = "${rlib}" ]; then
+ # Nothing has been stripped - sounds like /usr/X11R6 etc.
+ stripstr ${rlib} "/usr/X11R6/lib"
+ divname=${VAL}
+ rootname="/usr/X11R6/lib"
+ fi
+
#echo "${lib} ${rlib} ${divname} after stripping"
@@ -80,11 +88,13 @@ divert() {
# back up mesa file
mvmesa ${rlib}
# link to /var/X11R6/lib
- ln -s ${LPATH}${divname} ${rlib}
+ ln -sf ${LPATH}${divname} ${rlib}
else
# it does not exist in /usr/lib/
- # just link
- ln -s ${lib} ${rlib}
+ # just create folder and link
+ stripbase ${divname}
+ testmkdir ${rootname}${VAL}
+ ln -sf ${lib} ${rlib}
fi
done