NetworkManager support

This commit is contained in:
2021-05-05 17:45:36 +02:00
parent 72d76f6029
commit ad1c759310
3 changed files with 29 additions and 4 deletions

16
nm-dnsupdate.sh Executable file
View File

@@ -0,0 +1,16 @@
#!/bin/bash
IF=$1
STATUS=$2
case "$2" in
up|dhcp4-change)
logger -s "NM Script up $IF triggered dnsupdate"
dnsupdate "$1"
;;
down)
logger -s "NM Script down $IF triggered dnsupdate"
;;
*)
;;
esac