Menu

[r4114]: / trunk / etc / rc.d / dmesg  Maximize  Restore  History

Download this file

31 lines (25 with data), 499 Bytes

#!/bin/sh
#
# $FreeBSD: src/etc/rc.d/dmesg,v 1.5.10.1 2008/01/28 07:55:44 dougb Exp $
#
# Modified by Volker Theile (votdev@gmx.de)
# Changes:
# - Remove useless requirements
#

# PROVIDE: dmesg
# REQUIRE: cleanvar
# BEFORE: DAEMON
# KEYWORD: nojail

. /etc/rc.subr

name="dmesg"
rcvar=`set_rcvar`
dmesg_file="/var/run/dmesg.boot"
start_cmd="do_dmesg"
stop_cmd=":"

do_dmesg()
{
	rm -f ${dmesg_file}
	( umask 022 ; /sbin/dmesg $rc_flags > ${dmesg_file} )
}

load_rc_config $name
run_rc_command "$1"
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.