NetBSD/etc/rc.d/tpctl
mycroft 7d2e1537c5 Add an _rc_subr_loaded variable, set to ":" by rc.subr. Scripts can use this
for a speedup by doing:
$_rc_subr_loaded . /etc/rc.subr
2004-08-13 18:08:03 +00:00

25 lines
348 B
Bash

#!/bin/sh
#
# $NetBSD: tpctl,v 1.2 2004/08/13 18:08:03 mycroft Exp $
#
# PROVIDE: tpctl
# REQUIRE: DAEMON wscons
# BEFORE: LOGIN
$_rc_subr_loaded . /etc/rc.subr
name="tpctl"
rcvar=$name
start_cmd="run_tpctl"
stop_cmd=":"
run_tpctl()
{
echo "Calibrating touch panel..."
/usr/sbin/${name} $rc_flags
}
load_rc_config $name
run_rc_command "$1"