initial commit of file from CVS for ddclient on Sat 10 May 09:58:26 BST 2025

This commit is contained in:
2025-05-10 09:58:26 +01:00
parent 6f803b0d65
commit 1772c21199
12 changed files with 357 additions and 1 deletions

15
ddclient.NetworkManager Normal file
View File

@@ -0,0 +1,15 @@
#!/bin/sh
export LC_ALL=C
if [ "$2" = "down" ]; then
/sbin/ip route ls | grep -q '^default' || {
[ -f /var/run/ddclient/ddclient.pid ] && /usr/bin/systemctl stop ddclient.service || :
} && { :; }
fi
if [ "$2" = "up" ]; then
/sbin/ip -o route show dev "$1" | grep -q '^default' && {
/usr/bin/systemctl is-enabled ddclient >/dev/null && /usr/bin/systemctl start ddclient.service || :
} || { :; }
fi