diff options
author | Bill Nottingham <notting@redhat.com> | 2006-10-16 18:54:44 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2006-10-16 18:54:44 +0000 |
commit | 74da6f21b145f68ee2e01c870acaee7bea393be5 (patch) | |
tree | 7c22358db56a1f74e56455fe723c0ba99e5ec422 /initscripts.spec | |
parent | 7d9b078219684e2e503fe56676454319bb0902ef (diff) | |
download | initscripts-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.spec | 5 |
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 |