#!/bin/sh
#
# $NetBSD: ddclient.sh,v 1.7 2019/01/06 16:52:17 schmonz Exp $
#
# Dynamic DNS update client
#
# PROVIDE: ddclient
# REQUIRE: DAEMON

if [ -f /etc/rc.subr ]; then
	. /etc/rc.subr
fi

name="ddclient"
rcvar=${name}
command="/usr/pkg/sbin/${name}"
required_files="/usr/pkg/etc/${name}.conf"
extra_commands="reload"

if [ -f /etc/rc.subr ]; then
	load_rc_config $name
	run_rc_command "$1"
else
	echo -n " ${name}"
	${command} ${ddclient_flags} ${command_args}
fi
