2003-09-05 22:12:10 +02:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
# PROVIDE: ez-ipupdate
|
|
|
|
# REQUIRE:
|
|
|
|
# BEFORE:
|
2006-02-20 21:47:50 +01:00
|
|
|
# KEYWORD: shutdown
|
2003-09-05 22:12:10 +02:00
|
|
|
|
|
|
|
# Add the following line to /etc/rc.conf to enable ez-ipupdate:
|
|
|
|
#
|
|
|
|
#ez_ipupdate_enable="YES"
|
|
|
|
#
|
|
|
|
|
2010-03-27 01:15:24 +01:00
|
|
|
. /etc/rc.subr
|
2003-09-05 22:12:10 +02:00
|
|
|
|
2004-07-27 01:13:03 +02:00
|
|
|
name=ez_ipupdate
|
2012-01-14 09:57:23 +01:00
|
|
|
rcvar=ez_ipupdate_enable
|
2004-07-27 01:13:03 +02:00
|
|
|
|
2005-11-17 19:55:18 +01:00
|
|
|
load_rc_config $name
|
|
|
|
|
|
|
|
: ${ez_ipupdate_enable="NO"}
|
|
|
|
: ${ez_ipupdate_pidfile="/var/run/ez-ipupdate.pid"}
|
|
|
|
: ${ez_ipupdate_configfile="%%PREFIX%%/etc/ez-ipupdate.conf"}
|
|
|
|
: ${ez_ipupdate_flags="-d -c $ez_ipupdate_configfile -F $ez_ipupdate_pidfile"}
|
|
|
|
|
2004-07-27 01:13:03 +02:00
|
|
|
command=%%PREFIX%%/bin/ez-ipupdate
|
2004-07-27 01:23:57 +02:00
|
|
|
pidfile=$ez_ipupdate_pidfile
|
|
|
|
required_files=$ez_ipupdate_configfile
|
|
|
|
sig_stop=QUIT
|
2003-09-05 22:12:10 +02:00
|
|
|
|
|
|
|
run_rc_command "$1"
|