#!/bin/sh NTP_CFG=/home/tool/config/ntp.cfg cat $NTP_CFG >> /dev/null if [ "$?" -eq "0" ]; then SERVER_IP=`cat $NTP_CFG | awk '{print $1}'` logger -t ntp.sh "NTP Server:$SERVER_IP" /usr/sbin/ntpd -n -q -p $SERVER_IP if [ "$?" -eq "0" ]; then hwclock -wu logger -t ntp.sh "hwclock gesetzt" fi fi