1#!/bin/sh 2 3# PROVIDE: backuppc 4# REQUIRE: LOGIN 5# 6# Add the following line to /etc/rc.conf to enable BackupPC: 7# 8# backuppc_enable="YES" 9# 10# Submitted by Dan Niles 11 12. /etc/rc.subr 13 14name="backuppc" 15rcvar=`set_rcvar` 16load_rc_config $name 17 18: ${backuppc_enable:="NO"} 19: ${backuppc_program:="__INSTALLDIR__/bin/BackupPC"} 20: ${backuppc_flags:="-d"} 21: ${backuppc_user:="__BACKUPPCUSER__"} 22command_interpreter="/usr/bin/perl" 23command=$backuppc_program 24pidfile="__RUNDIR__/BackupPC.pid" 25 26run_rc_command "$1" 27