add ddns-scripts (package by Eric Bishop)
[openwrt/svn-archive/archive.git] / net / ddns-scripts / files / etc / hotplug.d / iface / 25-ddns
1 #!/bin/sh
2
3 . /usr/lib/ddns/dynamic_dns_functions.sh
4
5 config_load "network"
6 config_get wan_proto "wan" "proto"
7
8 #only start if we're bringing up wan and ppp isn't being used
9 #if ppp, it's better to use the /etc/ppp/ip-up.d because ip
10 #changes will trigger this directory to be run while only
11 #an interface going up or down will trigger this
12 if [ "$INTERFACE" = "wan" ] && [ "$ACTION" = "ifup" ] && [ "$wan_proto" != 'pppoe' ]
13 then
14 start_daemon_for_all_ddns_sections
15 fi
16
17