2004-10-28 02:04:57 +02:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
# PROVIDE: ddclient
|
|
|
|
# REQUIRE: LOGIN
|
2004-11-27 06:52:15 +01:00
|
|
|
# KEYWORD: shutdown
|
2004-10-28 02:04:57 +02:00
|
|
|
#
|
2004-11-27 06:52:15 +01:00
|
|
|
# Add the following line to /etc/rc.conf to enable ddclient:
|
2004-10-28 02:04:57 +02:00
|
|
|
#
|
2006-05-07 02:03:25 +02:00
|
|
|
# ddclient_enable="YES"
|
2004-10-28 02:04:57 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
. %%RC_SUBR%%
|
|
|
|
|
|
|
|
name="ddclient"
|
2006-05-07 02:03:25 +02:00
|
|
|
rcvar=${name}_enable
|
|
|
|
|
2004-10-28 02:04:57 +02:00
|
|
|
command="%%PREFIX%%/sbin/${name}"
|
|
|
|
required_files="%%PREFIX%%/etc/${name}.conf"
|
|
|
|
|
|
|
|
load_rc_config ${name}
|
|
|
|
|
2006-05-07 02:03:25 +02:00
|
|
|
: ${ddclient_enable="NO"}
|
|
|
|
: ${ddclient_flags="-daemon 300"}
|
|
|
|
|
2004-10-28 02:04:57 +02:00
|
|
|
run_rc_command "$1"
|