Sync network time when a connection comes up
This commit is contained in:
1 parent
38d54f10ff
commit
9ac39ce6bf
13 files changed
+365
-8
No files matched your search
@@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
# NetworkManager dispatcher: refresh NTP sources when a connection comes up.
|
||||
# The helper throttles and waits for chronyd, so run it without blocking NM.
|
||||
case "$2" in
|
||||
up|dhcp4-change|dhcp6-change|dns-change|connectivity-change|vpn-up) ;;
|
||||
*) exit 0 ;;
|
||||
esac
|
||||
/usr/bin/bananarchy-time-sync.sh network-up >/dev/null 2>&1 &
|
||||
exit 0
|
||||
Reference in new issue
Block a user