aboutsummaryrefslogtreecommitdiffstats
path: root/x11/wrapper/pkg-install
diff options
context:
space:
mode:
Diffstat (limited to 'x11/wrapper/pkg-install')
-rw-r--r--x11/wrapper/pkg-install5
1 files changed, 3 insertions, 2 deletions
diff --git a/x11/wrapper/pkg-install b/x11/wrapper/pkg-install
index 909a394f7307..cf0221c49627 100644
--- a/x11/wrapper/pkg-install
+++ b/x11/wrapper/pkg-install
@@ -5,6 +5,7 @@ if [ "X$2" != "XPOST-INSTALL" ]; then
fi
[ -e ${PKG_PREFIX}/bin/X ] && mv ${PKG_PREFIX}/bin/X ${PKG_PREFIX}/bin/X.bck
-ln -sf ${PKG_PREFIX}/bin/Xwrapper-4 ${PKG_PREFIX}/bin/X
+ln -sf ${PKG_PREFIX}/bin/Xwrapper ${PKG_PREFIX}/bin/X
[ -x ${PKG_PREFIX}/bin/XFree86 ] && chmod -s ${PKG_PREFIX}/bin/XFree86
-chmod u+s ${PKG_PREFIX}/bin/Xwrapper-4
+[ -x ${PKG_PREFIX}/bin/Xorg ] && chmod -s ${PKG_PREFIX}/bin/Xorg
+chmod u+s ${PKG_PREFIX}/bin/Xwrapper