From b32a95eced1d0f22be1751467ff365117e200f3f Mon Sep 17 00:00:00 2001 From: Ulf Samuelsson Date: Sun, 29 Jul 2007 07:17:01 +0000 Subject: Add atngw100 target --- .../atngw100/target_skeleton/etc/init.d/S43ntp | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100755 target/device/Atmel/atngw100/target_skeleton/etc/init.d/S43ntp (limited to 'target/device/Atmel/atngw100/target_skeleton/etc/init.d/S43ntp') diff --git a/target/device/Atmel/atngw100/target_skeleton/etc/init.d/S43ntp b/target/device/Atmel/atngw100/target_skeleton/etc/init.d/S43ntp new file mode 100755 index 000000000..f996ab09f --- /dev/null +++ b/target/device/Atmel/atngw100/target_skeleton/etc/init.d/S43ntp @@ -0,0 +1,27 @@ +#!/bin/sh + +NTPDATE=/usr/bin/ntpdate + +if [ -f /etc/default/ntpdate ]; then + . /etc/default/ntpdate +else + echo " missing /etc/default/ntpdate" + exit 1 +fi + +echo -n "Starting ntpdate:" +if [ ! -x ${NTPDATE} ]; then + echo " missing" + echo -n " WARNING: could not syncronize clock, " + echo "edit NTPSERVERS in /etc/default/ntpdate." + exit 1 +fi + +if ${NTPDATE} $NTPOPTIONS $NTPSERVERS > /dev/null 2> /dev/null; then + echo " done" +else + echo " failed" + echo -n " WARNING: could not syncronize clock, " + echo "edit NTPSERVERS in /etc/default/ntpdate." + exit 1 +fi -- cgit v1.2.3