aboutsummaryrefslogtreecommitdiffstats
path: root/initscripts.spec
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2008-09-30 13:58:55 -0400
committerBill Nottingham <notting@redhat.com>2008-09-30 13:58:55 -0400
commit413dcc675d75f89e4d4ad8a5c95f2c8a562d1215 (patch)
tree63eea579f87b97072e3191dab7570377d97bab58 /initscripts.spec
parentf9e64364d990ec5b34c8560b545ec7f198b46db1 (diff)
downloadinitscripts-413dcc675d75f89e4d4ad8a5c95f2c8a562d1215.tar
initscripts-413dcc675d75f89e4d4ad8a5c95f2c8a562d1215.tar.gz
initscripts-413dcc675d75f89e4d4ad8a5c95f2c8a562d1215.tar.bz2
initscripts-413dcc675d75f89e4d4ad8a5c95f2c8a562d1215.tar.xz
initscripts-413dcc675d75f89e4d4ad8a5c95f2c8a562d1215.zip
Fix up Prereq usage (#225900)
Split up prereqs into Requires(pre), etc. Remove sed bits in %post, as we don't have that in inittab any more.
Diffstat (limited to 'initscripts.spec')
-rw-r--r--initscripts.spec9
1 files changed, 3 insertions, 6 deletions
diff --git a/initscripts.spec b/initscripts.spec
index 3fed2b43..e4590b17 100644
--- a/initscripts.spec
+++ b/initscripts.spec
@@ -36,7 +36,9 @@ Conflicts: alsa-utils < 1.0.14-0.5.rc2.fc7
# http://bugzilla.redhat.com/show_bug.cgi?id=252973
Conflicts: nut < 2.2.0
Obsoletes: hotplug
-Prereq: /sbin/chkconfig, /usr/sbin/groupadd, /bin/sed, coreutils
+Requires(pre): /usr/sbin/groupadd
+Requires(post): /sbin/chkconfig, coreutils
+Requires(preun): /sbin/chkconfig
BuildRequires: glib2-devel popt-devel gettext pkgconfig
%description
@@ -103,11 +105,6 @@ chmod 600 /var/log/btmp
/sbin/chkconfig --add network
/sbin/chkconfig --add netconsole
-# 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