NetworkManager support
This commit is contained in:
16
nm-dnsupdate.sh
Executable file
16
nm-dnsupdate.sh
Executable 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
|
||||
Reference in New Issue
Block a user