ddns.hotplug 323 B

1234567891011
  1. #!/bin/sh
  2. # there are other ACTIONs like ifupdate we don't need
  3. case "$ACTION" in
  4. ifup) # OpenWrt is giving a network not phys. Interface
  5. /etc/init.d/ddns enabled && /usr/lib/ddns/dynamic_dns_updater.sh -n "$INTERFACE" -- start
  6. ;;
  7. ifdown)
  8. /usr/lib/ddns/dynamic_dns_updater.sh -n "$INTERFACE" -- stop
  9. ;;
  10. esac