summaryrefslogtreecommitdiffstats
path: root/initscripts.spec
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2005-04-15 17:44:24 +0000
committerBill Nottingham <notting@redhat.com>2005-04-15 17:44:24 +0000
commit8986e4b2efaf6df516a813b362a7c26d5f67dcaf (patch)
tree7f2e5b6e0bc970ef43f44f7d4000695cafec8181 /initscripts.spec
parentabd75be1e982ff40055179f66fec5df07ade479e (diff)
downloadinitscripts-8986e4b2efaf6df516a813b362a7c26d5f67dcaf.tar.gz
initscripts-8986e4b2efaf6df516a813b362a7c26d5f67dcaf.tar.xz
initscripts-8986e4b2efaf6df516a813b362a7c26d5f67dcaf.zip
early-login support
Diffstat (limited to 'initscripts.spec')
-rw-r--r--initscripts.spec6
1 files changed, 6 insertions, 0 deletions
diff --git a/initscripts.spec b/initscripts.spec
index 93fad911..c0cef131 100644
--- a/initscripts.spec
+++ b/initscripts.spec
@@ -85,6 +85,12 @@ if [ $1 = 0 ]; then
fi
fi
+# Handle converting prefdm to run-once
+if fgrep -q "x:5:respawn:/etc/X11/prefdm -nodaemon" /etc/inittab ; then
+ sed --in-place=.rpmsave 's|^x:5:respawn:/etc/X11/prefdm -nodaemon|x:5:once:/etc/X11/prefdm -nodaemon|g' /etc/inittab
+fi
+
+
%preun
if [ $1 = 0 ]; then
/sbin/chkconfig --del netfs