Rev 192 | Blame | Compare with Previous | Last modification | View Log | RSS feed
#!/bin/bashSERVERFILE=$SAVEDIR/chrony.servers.$interfacechrony_config() {# Disable modifications if called from a NM dispatcher script[ -n "$NM_DISPATCHER_ACTION" ] && return 0rm -f "$SERVERFILE"if [ "$PEERNTP" != "no" ]; thenfor server in $new_ntp_servers; doecho "$server ${NTPSERVERARGS:-iburst}" >> "$SERVERFILE"done/usr/libexec/chrony-helper update-daemon || :fi}chrony_restore() {[ -n "$NM_DISPATCHER_ACTION" ] && return 0if [ -f "$SERVERFILE" ]; thenrm -f "$SERVERFILE"/usr/libexec/chrony-helper update-daemon || :fi}