#!/bin/sh
#
# Startup script for frickin PPTP proxy.
#
# $FreeBSD: ports/net/frickin/files/frickin.sh.in,v 1.1 2006/12/03 22:13:07 miwi Exp $
#
# REQUIRE: DAEMON
# Define these frickin_* variables in one of these files:
# /etc/rc.conf
# /etc/rc.conf.local
# /etc/rc.conf.d/frickin
#
# frickin_enable : bool
# Enable the transport ("YES") or not ("NO", the default).
# frickin_config : string
# Path to config file
#
frickin_enable=${frickin_enable-"NO"}
frickin_conf=${frickin_conf-""}
. %%RC_SUBR%%
name="frickin"
rcvar=`set_rcvar`
load_rc_config ${name}
command="%%PREFIX%%/sbin/${name}2"
if [ ! -z "${frickin_conf}" -a -f ${frickin_conf} ]; then
frickin_flags="-c ${frickin_conf}"
fi
run_rc_command "$1"
syntax highlighted by Code2HTML, v. 0.9.1