aiccu: Add NTP hotplug hook

This hook simply writes current stratum to /var/run/aiccu_ntp_stratum,
from where it is read by aiccu proto script.

Signed-off-by: Ondrej Caletka <Ondrej@Caletka.cz>
This commit is contained in:
Ondřej Caletka
2014-11-30 18:57:28 +01:00
parent 7c9b5198cd
commit 6f70462952
2 changed files with 6 additions and 2 deletions
+3
View File
@@ -0,0 +1,3 @@
#!/bin/sh
NTPSTRATUMFILE="/var/run/aiccu_ntp_stratum"
echo $stratum > "$NTPSTRATUMFILE"