mirror of
https://github.com/openwrt/packages.git
synced 2025-12-23 03:44:31 +04:00
Backport of current version 2.7.6-10 - more services - more functionality - be prepared for next versions compiled ipk-packages available at https://github.com/chris5560/OpenWrt-Backports/tree/master/for-CC15.05.01/ddns-scripts_2.7.6-10 Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
12 lines
323 B
Bash
12 lines
323 B
Bash
#!/bin/sh
|
|
|
|
# there are other ACTIONs like ifupdate we don't need
|
|
case "$ACTION" in
|
|
ifup) # OpenWrt is giving a network not phys. Interface
|
|
/etc/init.d/ddns enabled && /usr/lib/ddns/dynamic_dns_updater.sh -n "$INTERFACE" -- start
|
|
;;
|
|
ifdown)
|
|
/usr/lib/ddns/dynamic_dns_updater.sh -n "$INTERFACE" -- stop
|
|
;;
|
|
esac
|