summaryrefslogtreecommitdiff
path: root/source/x/x11/post-install/xdm.post-install
diff options
context:
space:
mode:
Diffstat (limited to 'source/x/x11/post-install/xdm.post-install')
-rw-r--r--source/x/x11/post-install/xdm.post-install16
1 files changed, 16 insertions, 0 deletions
diff --git a/source/x/x11/post-install/xdm.post-install b/source/x/x11/post-install/xdm.post-install
new file mode 100644
index 00000000..05e37163
--- /dev/null
+++ b/source/x/x11/post-install/xdm.post-install
@@ -0,0 +1,16 @@
+mkdir -p $PKG/etc/X11
+( cd $PKG/usr/lib/X11
+ mv xdm $PKG/etc/X11
+ ln -sf ../../../etc/X11/xdm .
+)
+mv $PKG/etc/X11/xdm/Xsession $PKG/etc/X11/xdm/Xsession.orig
+mv $PKG/etc/X11/xdm/Xsetup_0 $PKG/etc/X11/xdm/Xsetup_0.orig
+cp -a $CWD/post-install/xdm/Xsession $PKG/etc/X11/xdm/Xsession
+cp -a $CWD/post-install/xdm/Xsetup_0 $PKG/etc/X11/xdm/Xsetup_0
+chown root:root $PKG/etc/X11/xdm/Xsession $PKG/etc/X11/xdm/Xsetup_0
+chmod 755 $PKG/etc/X11/xdm/Xsession $PKG/etc/X11/xdm/Xsetup_0
+( cd $PKG/etc/X11/xdm
+ mv xdm-config xdm-config.new
+ mv Xservers Xservers.new
+ mv Xsession Xsession.new
+)