aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDonnie Barnes <djb@redhat.com>1997-10-08 18:54:12 +0000
committerDonnie Barnes <djb@redhat.com>1997-10-08 18:54:12 +0000
commitd61362181b2a0c47b75668e9e5da608f1cedd624 (patch)
tree64f7ef54f378244ff02f1738a1f7a366ffad62a4
parentf22a4746028154763a7257ed22b9af66b88c9589 (diff)
downloadinitscripts-d61362181b2a0c47b75668e9e5da608f1cedd624.tar
initscripts-d61362181b2a0c47b75668e9e5da608f1cedd624.tar.gz
initscripts-d61362181b2a0c47b75668e9e5da608f1cedd624.tar.bz2
initscripts-d61362181b2a0c47b75668e9e5da608f1cedd624.tar.xz
initscripts-d61362181b2a0c47b75668e9e5da608f1cedd624.zip
added chkconfig support
-rw-r--r--initscripts.spec50
1 files changed, 37 insertions, 13 deletions
diff --git a/initscripts.spec b/initscripts.spec
index 2f669938..fcee72ef 100644
--- a/initscripts.spec
+++ b/initscripts.spec
@@ -8,6 +8,7 @@ Release: 1
Source: initscripts-%{version}.tar.gz
BuildRoot: /var/tmp/initbld
Requires: mingetty bash mktemp
+Prerequires: /sbin/chkconfig
%description
This package contains the scripts use to boot a system, change run
@@ -16,6 +17,11 @@ that activate and deactivate most network interfaces.
%changelog
+* Wed Oct 08 1997 Donnie Barnes <djb@redhat.com>
+
+- added chkconfig support
+- made all rc*.d symlinks have missingok flag
+
* Mon Oct 06 1997 Erik Troan <ewt@redhat.com>
- fixed network-scripts to allow full pathnames as config files
@@ -179,16 +185,15 @@ ln -s ../init.d/random $RPM_BUILD_ROOT/etc/rc.d/rc0.d/K80random
ln -s ../init.d/random $RPM_BUILD_ROOT/etc/rc.d/rc1.d/S20random
ln -s ../init.d/random $RPM_BUILD_ROOT/etc/rc.d/rc2.d/S20random
ln -s ../init.d/random $RPM_BUILD_ROOT/etc/rc.d/rc3.d/S20random
+ln -s ../init.d/random $RPM_BUILD_ROOT/etc/rc.d/rc4.d/S20random
ln -s ../init.d/random $RPM_BUILD_ROOT/etc/rc.d/rc5.d/S20random
ln -s ../init.d/random $RPM_BUILD_ROOT/etc/rc.d/rc6.d/K80random
-ln -s ../init.d/killall $RPM_BUILD_ROOT/etc/rc.d/rc0.d/K90killall
-ln -s ../init.d/killall $RPM_BUILD_ROOT/etc/rc.d/rc6.d/K90killall
-
ln -s ../init.d/nfsfs $RPM_BUILD_ROOT/etc/rc.d/rc0.d/K95nfsfs
-ln -s ../init.d/nfsfs $RPM_BUILD_ROOT/etc/rc.d/rc1.d/K90nfsfs
-ln -s ../init.d/nfsfs $RPM_BUILD_ROOT/etc/rc.d/rc2.d/K90nfsfs
+ln -s ../init.d/nfsfs $RPM_BUILD_ROOT/etc/rc.d/rc1.d/K95nfsfs
+ln -s ../init.d/nfsfs $RPM_BUILD_ROOT/etc/rc.d/rc2.d/K95nfsfs
ln -s ../init.d/nfsfs $RPM_BUILD_ROOT/etc/rc.d/rc3.d/S15nfsfs
+ln -s ../init.d/nfsfs $RPM_BUILD_ROOT/etc/rc.d/rc4.d/S15nfsfs
ln -s ../init.d/nfsfs $RPM_BUILD_ROOT/etc/rc.d/rc5.d/S15nfsfs
ln -s ../init.d/nfsfs $RPM_BUILD_ROOT/etc/rc.d/rc6.d/K95nfsfs
@@ -196,9 +201,13 @@ ln -s ../init.d/network $RPM_BUILD_ROOT/etc/rc.d/rc0.d/K97network
ln -s ../init.d/network $RPM_BUILD_ROOT/etc/rc.d/rc1.d/K97network
ln -s ../init.d/network $RPM_BUILD_ROOT/etc/rc.d/rc2.d/S10network
ln -s ../init.d/network $RPM_BUILD_ROOT/etc/rc.d/rc3.d/S10network
+ln -s ../init.d/network $RPM_BUILD_ROOT/etc/rc.d/rc4.d/S10network
ln -s ../init.d/network $RPM_BUILD_ROOT/etc/rc.d/rc5.d/S10network
ln -s ../init.d/network $RPM_BUILD_ROOT/etc/rc.d/rc6.d/K97network
+ln -s ../init.d/killall $RPM_BUILD_ROOT/etc/rc.d/rc0.d/K90killall
+ln -s ../init.d/killall $RPM_BUILD_ROOT/etc/rc.d/rc6.d/K90killall
+
ln -s ../init.d/halt $RPM_BUILD_ROOT/etc/rc.d/rc0.d/S00halt
ln -s ../init.d/halt $RPM_BUILD_ROOT/etc/rc.d/rc6.d/S00reboot
@@ -214,6 +223,20 @@ if [ ! -f /var/log/wtmp ]; then
touch /var/log/wtmp
fi
+chkconfig --add random 2345 20 80 "Saves and restores system entropy pool \
+for higher quality random number generation."
+chkconfig --add nfsfs 345 15 95 "[Un]Mounts all Network File System (NFS) \
+mount points."
+chkconfig --add network 345 10 97 "Activates/Deactivates all network \
+interfaces configured to start at boot time."
+
+%postun
+if [ $1 = 0 ]; then
+ chkconfig --del random
+ chkconfig --del nfsfs
+ chkconfig --del network
+fi
+
%clean
rm -rf $RPM_BUILD_ROOT
@@ -239,22 +262,23 @@ rm -rf $RPM_BUILD_ROOT
%dir /etc/rc.d
%config /etc/rc.d/rc.sysinit
%dir /etc/rc.d/rc0.d
-%config /etc/rc.d/rc0.d/*
+%config(missingok) /etc/rc.d/rc0.d/*
%dir /etc/rc.d/rc1.d
-%config /etc/rc.d/rc1.d/*
+%config(missingok) /etc/rc.d/rc1.d/*
%dir /etc/rc.d/rc2.d
-%config /etc/rc.d/rc2.d/*
+%config(missingok) /etc/rc.d/rc2.d/*
%dir /etc/rc.d/rc3.d
-%config /etc/rc.d/rc3.d/*
+%config(missingok) /etc/rc.d/rc3.d/*
+%dir /etc/rc.d/rc4.d
+%config(missingok) /etc/rc.d/rc4.d/*
%dir /etc/rc.d/rc5.d
-%config /etc/rc.d/rc5.d/*
+%config(missingok) /etc/rc.d/rc5.d/*
%dir /etc/rc.d/rc6.d
-%config /etc/rc.d/rc6.d/*
+%config(missingok) /etc/rc.d/rc6.d/*
%dir /etc/rc.d/init.d
-%config /etc/rc.d/init.d/*
+%config(missingok) /etc/rc.d/init.d/*
%config /etc/rc.d/rc
%config /etc/rc.d/rc.local
-%dir /etc/rc.d/rc4.d
/bin/doexec
/bin/usleep
/usr/sbin/usernetctl