aboutsummaryrefslogtreecommitdiffstats
path: root/initscripts.spec
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2006-10-16 18:54:44 +0000
committerBill Nottingham <notting@redhat.com>2006-10-16 18:54:44 +0000
commit74da6f21b145f68ee2e01c870acaee7bea393be5 (patch)
tree7c22358db56a1f74e56455fe723c0ba99e5ec422 /initscripts.spec
parent7d9b078219684e2e503fe56676454319bb0902ef (diff)
downloadinitscripts-74da6f21b145f68ee2e01c870acaee7bea393be5.tar
initscripts-74da6f21b145f68ee2e01c870acaee7bea393be5.tar.gz
initscripts-74da6f21b145f68ee2e01c870acaee7bea393be5.tar.bz2
initscripts-74da6f21b145f68ee2e01c870acaee7bea393be5.tar.xz
initscripts-74da6f21b145f68ee2e01c870acaee7bea393be5.zip
if we back out early login, need to sed inittab back
Diffstat (limited to 'initscripts.spec')
-rw-r--r--initscripts.spec5
1 files changed, 5 insertions, 0 deletions
diff --git a/initscripts.spec b/initscripts.spec
index 6e90a1d9..912928d5 100644
--- a/initscripts.spec
+++ b/initscripts.spec
@@ -69,6 +69,11 @@ chmod 600 /var/log/btmp
/sbin/chkconfig --add netfs
/sbin/chkconfig --add network
+# Handle converting prefdm back to respawn
+if fgrep -q "x:5:once:/etc/X11/prefdm -nodaemon" /etc/inittab ; then
+ sed --in-place=.rpmsave 's|^x:5:once:/etc/X11/prefdm -nodaemon|x:5:respawn:/etc/X11/prefdm -nodaemon|g' /etc/inittab
+fi
+
%preun
if [ $1 = 0 ]; then
/sbin/chkconfig --del netfs