chrony: add ntp hotplug provider script
[feed/packages.git] / net / chrony / files / chrony.ntp-hotplug
1 #!/bin/sh
2 # Wait for sync for up to 5 minutes and notify other services
3
4 /usr/bin/chronyc waitsync 300 1 0.0 1 || exit 0
5
6 ubus call hotplug.ntp call '{ "env": [ "ACTION=stratum" ] }'