aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>1999-04-07 16:00:18 +0000
committerBill Nottingham <notting@redhat.com>1999-04-07 16:00:18 +0000
commit699df724f4f81f5458148ac77b88c94297766f36 (patch)
treecae7bebc955391d8cc3101e295337a54fbff6306
parent2d638e35d40ae53bb81a201173a78a9cdf1faac5 (diff)
downloadinitscripts-699df724f4f81f5458148ac77b88c94297766f36.tar
initscripts-699df724f4f81f5458148ac77b88c94297766f36.tar.gz
initscripts-699df724f4f81f5458148ac77b88c94297766f36.tar.bz2
initscripts-699df724f4f81f5458148ac77b88c94297766f36.tar.xz
initscripts-699df724f4f81f5458148ac77b88c94297766f36.zip
changes to %post for wtmp/utmpr3-99
-rw-r--r--ChangeLog13
-rw-r--r--initscripts.spec20
2 files changed, 27 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog
index 4765561b..29c82d21 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,18 @@
+1999-04-07 Bill Nottingham <notting@redhat.com>
+
+ * rc.d/rc.sysinit: touch wtmp, don't zero it
+
+ * sysconfig/network-scripts/ifup: fix check for non-existent devices
+
+1999-04-07 Erik Troan <ewt@redhat.com>
+
+ * initscripts.spec, rc.d/rc.sysinit:
+ made wtmp, utmp mode 664 and owned by group wtmp
+
1999-04-06 Bill Nottingham <notting@redhat.com>
+ * inittab: take out --noclear
+
* rc.d/rc.sysinit: do loadkeys nicer
1999-04-06 Michael K. Johnson <johnsonm@redhat.com>
diff --git a/initscripts.spec b/initscripts.spec
index 0d274d07..f5491e6f 100644
--- a/initscripts.spec
+++ b/initscripts.spec
@@ -75,20 +75,25 @@ ln -s ../rc.local $RPM_BUILD_ROOT/etc/rc.d/rc2.d/S99local
ln -s ../rc.local $RPM_BUILD_ROOT/etc/rc.d/rc3.d/S99local
ln -s ../rc.local $RPM_BUILD_ROOT/etc/rc.d/rc5.d/S99local
+mkdir -p $RPM_BUILD_ROOT/var/{log,run}
+touch $RPM_BUILD_ROOT/var/run/utmp
+touch $RPM_BUILD_ROOT/var/log/wtmp
+
+
%pre
/usr/sbin/groupadd -r -f utmp
%post
-if [ ! -f /var/log/wtmp ]; then
- touch /var/log/wtmp
- chgrp utmp /var/log/wtmp
- chmod 664 /var/log/wtmp
-fi
+touch /var/log/wtmp
+touch /var/run/utmp
+chown root.utmp /var/log/wtmp /var/run/utmp
+chmod 664 /var/log/wtmp /var/run/utmp
chkconfig --add random
chkconfig --add netfs
chkconfig --add network
+# handle serial installs semi gracefully
if [ $1 = 0 ]; then
if [ "$TERM" = "vt100" ]; then
tmpfile=/etc/sysconfig/tmp.$$
@@ -171,10 +176,13 @@ rm -rf $RPM_BUILD_ROOT
%config /etc/ppp/ip-up
%config /etc/ppp/ip-down
%doc sysconfig.txt sysvinitfiles
+%ghost %attr(0664,root,utmp) /var/log/wtmp
+%ghost %attr(0664,root,utmp) /var/run/utmp
+
%changelog
* Wed Apr 07 1999 Erik Troan <ewt@redhat.com>
-- changed utmp,wtmp to be group writeable and owned by group wtmp
+- changed utmp,wtmp to be group writeable and owned by group utmp
* Tue Apr 06 1999 Bill Nottingham <notting@redhat.com>
- fix loading of consolefonts/keymaps