Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/etc/rc.d remove /var/run/dmesg.boot before attempting to wri...



details:   https://anonhg.NetBSD.org/src/rev/3b50862d9484
branches:  trunk
changeset: 485528:3b50862d9484
user:      lukem <lukem%NetBSD.org@localhost>
date:      Sun Apr 30 12:39:56 2000 +0000

description:
remove /var/run/dmesg.boot before attempting to write to it

diffstat:

 etc/rc.d/dmesg |  10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 16c9c59a3030 -r 3b50862d9484 etc/rc.d/dmesg
--- a/etc/rc.d/dmesg    Sun Apr 30 12:21:00 2000 +0000
+++ b/etc/rc.d/dmesg    Sun Apr 30 12:39:56 2000 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# $NetBSD: dmesg,v 1.1.1.1 2000/03/10 11:53:25 lukem Exp $
+# $NetBSD: dmesg,v 1.2 2000/04/30 12:39:56 lukem Exp $
 #
 
 # PROVIDE: dmesg
@@ -11,7 +11,13 @@
 
 name="dmesg"
 start_precmd="checkyesno dmesg"
-start_cmd="dmesg $dmesg_flags > /var/run/dmesg.boot"
+start_cmd="do_dmesg"
 stop_cmd=":"
 
+do_dmesg()
+{
+       rm -f /var/run/dmesg.boot
+       dmesg $dmesg_flags > /var/run/dmesg.boot
+}
+
 run_rc_command "$1"



Home | Main Index | Thread Index | Old Index