NetBSD/etc/rc.d/envsys

31 lines
476 B
Plaintext
Raw Normal View History

#!/bin/sh
#
# $NetBSD: envsys,v 1.3 2007/10/07 04:19:07 xtraeme Exp $
#
# PROVIDE: envsys
# REQUIRE: LOGIN DAEMON
$_rc_subr_loaded . /etc/rc.subr
name="envsys"
rcvar=${name}
command="/usr/sbin/envstat"
required_files="/etc/envsys.conf"
start_cmd="do_start"
stop_cmd="do_stop"
do_start()
{
${command} -c ${required_files}
echo "Setting new sensor properties."
}
do_stop()
{
${command} -S
echo "Removing sensor properties."
}
load_rc_config ${name}
run_rc_command "$1"