From 3b853f30183c7dbe87a895d4d8e044133575a75f Mon Sep 17 00:00:00 2001 From: lukem Date: Sun, 30 Apr 2000 12:39:56 +0000 Subject: [PATCH] remove /var/run/dmesg.boot before attempting to write to it --- etc/rc.d/dmesg | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/etc/rc.d/dmesg b/etc/rc.d/dmesg index ee44958799af..ab145cdec2b2 100755 --- a/etc/rc.d/dmesg +++ b/etc/rc.d/dmesg @@ -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"