10 lines
339 B
Bash
Executable File
10 lines
339 B
Bash
Executable File
#!/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
|