summaryrefslogtreecommitdiffstats
path: root/x11/wrapper/pkg-install
blob: cf0221c49627e0340a27db6a3662a0c895644e0e (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

if [ "X$2" != "XPOST-INSTALL" ]; then
    exit 0
fi

[ -e ${PKG_PREFIX}/bin/X ] && mv ${PKG_PREFIX}/bin/X ${PKG_PREFIX}/bin/X.bck
ln -sf ${PKG_PREFIX}/bin/Xwrapper ${PKG_PREFIX}/bin/X
[ -x ${PKG_PREFIX}/bin/XFree86 ] && chmod -s ${PKG_PREFIX}/bin/XFree86
[ -x ${PKG_PREFIX}/bin/Xorg ] && chmod -s ${PKG_PREFIX}/bin/Xorg
chmod u+s ${PKG_PREFIX}/bin/Xwrapper
OpenPOWER on IntegriCloud