#!/bin/sh set -e [ "$1" = "configure" ] || exit 0 [ "$DEBIAN_SCRIPT_DEBUG" ] && set -vx konfiguriraj() { if [ -f /etc/ntp.conf ]; then cp -p /etc/ntp.conf /etc/ntp.conf.dpkg-old fi if [ -f /etc/default/ntp-servers ]; then cp -p /etc/default/ntp-servers /etc/default/ntp-servers.dpkg-old fi cp /usr/share/doc/ntp-cn/ntp.conf.tmpl /etc/ntp.conf # Load CARNet Tools . /usr/share/carnet-tools/functions.sh cp_check_and_sed 'NTPSERVERS' \ "s/^.*NTPSERVERS.*/NTPSERVERS=\"zg1.ntp.carnet.hr ri.ntp.carnet.hr zg2.ntp.carnet.hr st.ntp.carnet.hr os.ntp.carnet.hr 127.127.1.0\"/g" \ /etc/default/ntpdate || true } if [ -f /usr/share/doc/ntp-cn/ntp.conf.tmpl -a -f /etc/ntp.conf ]; then if ! cmp -s /usr/share/doc/ntp-cn/ntp.conf.tmpl /etc/ntp.conf; then konfiguriraj fi fi # restartaj sve invoke-rc.d ntp restart #DEBHELPER#