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-install9
1 files changed, 7 insertions, 2 deletions
diff --git a/source/x/x11/post-install/xdm.post-install b/source/x/x11/post-install/xdm.post-install
index 73611b47..a8889970 100644
--- a/source/x/x11/post-install/xdm.post-install
+++ b/source/x/x11/post-install/xdm.post-install
@@ -19,9 +19,14 @@ chmod 0755 $PKG/etc/X11/xdm/Xsession $PKG/etc/X11/xdm/Xsetup_0
for conffile in \
Xaccess Xreset Xresources Xservers Xsession Xsetup_0 Xstartup Xwilling \
- GiveConsole TakeConsole chooser xdm-config ../app-defaults/Chooser ;
+ GiveConsole TakeConsole xdm-config ../app-defaults/Chooser ;
do
- mv $PKG/etc/X11/xdm/${conffile} $PKG/etc/X11/xdm/${conffile}.new ;
+ # Use awk to strip leading blank lines... weird bug that cropped up in the
+ # pre Slackware-14.1 development cycle.
+ awk "/[^ ]/ { copy=1 }; copy { print }" $PKG/etc/X11/xdm/${conffile} > $PKG/etc/X11/xdm/${conffile}.new
+ touch -r $PKG/etc/X11/xdm/${conffile} $PKG/etc/X11/xdm/${conffile}.new
+ rm -f $PKG/etc/X11/xdm/${conffile}
+ #mv $PKG/etc/X11/xdm/${conffile} $PKG/etc/X11/xdm/${conffile}.new ;
done
mkdir -p $PKG/var/lib/xdm