2008-11-13 23:17:28 +01:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
# PROVIDE: ptpd
|
|
|
|
# REQUIRE: NETWORKING DAEMON
|
|
|
|
# KEYWORD: nojail
|
|
|
|
#
|
|
|
|
# Add the following lines to /etc/rc.conf to enable ptpd
|
|
|
|
#
|
|
|
|
# ptpd_enable (bool): Set to "NO" by default
|
|
|
|
# Set it to "YES" to enable ptpd
|
|
|
|
|
2010-03-27 01:15:24 +01:00
|
|
|
. /etc/rc.subr
|
2008-11-13 23:17:28 +01:00
|
|
|
|
|
|
|
name="ptpd"
|
2012-01-14 09:57:23 +01:00
|
|
|
rcvar=ptpd_enable
|
2008-11-13 23:17:28 +01:00
|
|
|
|
|
|
|
command="%%PREFIX%%/sbin/${name}"
|
|
|
|
|
|
|
|
ptpd_enable=${ptpd_enable:-"NO"}
|
|
|
|
|
|
|
|
load_rc_config $name
|
|
|
|
run_rc_command "$1"
|