aboutsummaryrefslogtreecommitdiffstats
path: root/initscripts.spec
diff options
context:
space:
mode:
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