2015-11-26 09:03:25 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
SERVERFILE=$SAVEDIR/chrony.servers.$interface
|
|
|
|
|
|
|
|
chrony_config() {
|
|
|
|
rm -f $SERVERFILE
|
|
|
|
if [ "$PEERNTP" != "no" ]; then
|
|
|
|
for server in $new_ntp_servers; do
|
|
|
|
echo "$server ${NTPSERVERARGS:-iburst}" >> $SERVERFILE
|
|
|
|
done
|
2021-07-01 15:21:41 +02:00
|
|
|
@CHRONY_HELPER@ update-daemon || :
|
2015-11-26 09:03:25 +01:00
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
chrony_restore() {
|
|
|
|
if [ -f $SERVERFILE ]; then
|
|
|
|
rm -f $SERVERFILE
|
2021-07-01 15:21:41 +02:00
|
|
|
@CHRONY_HELPER@ update-daemon || :
|
2015-11-26 09:03:25 +01:00
|
|
|
fi
|
|
|
|
}
|