aboutsummaryrefslogtreecommitdiffstats
path: root/initscripts.spec
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>1999-02-22 23:43:52 +0000
committerBill Nottingham <notting@redhat.com>1999-02-22 23:43:52 +0000
commit83aa1f9a5ab54c1578b1e6c1c15f05ef784259df (patch)
tree5ea38a91b655c3c934fc971d4cded7cc73e14bd7 /initscripts.spec
parent8a287013f87a889ad57acf9dc32cf487b297c5e8 (diff)
downloadinitscripts-83aa1f9a5ab54c1578b1e6c1c15f05ef784259df.tar
initscripts-83aa1f9a5ab54c1578b1e6c1c15f05ef784259df.tar.gz
initscripts-83aa1f9a5ab54c1578b1e6c1c15f05ef784259df.tar.bz2
initscripts-83aa1f9a5ab54c1578b1e6c1c15f05ef784259df.tar.xz
initscripts-83aa1f9a5ab54c1578b1e6c1c15f05ef784259df.zip
add default /etc/sysconfig/init
change raw ansi to echo -e add a 'serial' mode that has no ansi escapes
Diffstat (limited to 'initscripts.spec')
-rw-r--r--initscripts.spec11
1 files changed, 10 insertions, 1 deletions
diff --git a/initscripts.spec b/initscripts.spec
index 9bf0939b..ff39e898 100644
--- a/initscripts.spec
+++ b/initscripts.spec
@@ -1,6 +1,6 @@
Summary: inittab and /etc/rc.d scripts
Name: initscripts
-%define version 3.90
+%define version 3.91
Version: %{version}
Copyright: GPL
Group: System Environment/Base
@@ -84,6 +84,14 @@ chkconfig --add random
chkconfig --add nfsfs
chkconfig --add network
+if [ $1 = 0 ]; then
+ if [ "$TERM" = "vt100" ]; then
+ tmpfile=/etc/sysconfig/tmp.$$
+ sed -e '/BOOTUP=color/BOOTUP=serial/' /etc/sysconfig/init > $tmpfile
+ mv -f $tmpfile /etc/sysconfig/init
+ fi
+fi
+
%postun
if [ $1 = 0 ]; then
chkconfig --del random
@@ -98,6 +106,7 @@ rm -rf $RPM_BUILD_ROOT
%defattr(-,root,root)
%dir /etc/sysconfig/network-scripts
%config %verify(not md5 mtime size) /etc/adjtime
+%config(noreplace) /etc/sysconfig/init
/etc/sysconfig/network-scripts/ifdown
%config /sbin/ifdown
%config /etc/sysconfig/network-scripts/ifdown-post