mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

18 lines
528 B

public_dyndns() {
addcode up 5 5 "dyndns_start $if"
addcode down 5 5 "dyndns_stop $if"
}
dyndns_start () {
if=$1
[ ! -f /etc/ezipupdate/stone.$if ] && \
error "$if not configured for ez-ipupdate usage! Run \`stone' first!"
ez-ipupdate -F /var/run/ez-ipupdate.$if.pid -c /etc/ezipupdate/stone.$if
}
dyndns_stop () {
if=$1
[ ! -f /etc/ezipupdate/stone.$if ] && \
error "$if not configured for ez-ipupdate usage! Run \`stone' first!"
kill -QUIT `cat /var/run/ez-ipupdate.$if.pid`
rm -f /var/run/ez-ipupdate.$if.pid
}