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

  1. public_dyndns() {
  2. addcode up 5 5 "dyndns_start $if"
  3. addcode down 5 5 "dyndns_stop $if"
  4. }
  5. dyndns_start () {
  6. if=$1
  7. [ ! -f /etc/ezipupdate/stone.$if ] && \
  8. error "$if not configured for ez-ipupdate usage! Run \`stone' first!"
  9. ez-ipupdate -F /var/run/ez-ipupdate.$if.pid -c /etc/ezipupdate/stone.$if
  10. }
  11. dyndns_stop () {
  12. if=$1
  13. [ ! -f /etc/ezipupdate/stone.$if ] && \
  14. error "$if not configured for ez-ipupdate usage! Run \`stone' first!"
  15. kill -QUIT `cat /var/run/ez-ipupdate.$if.pid`
  16. rm -f /var/run/ez-ipupdate.$if.pid
  17. }