#!/bin/bash
# Run ntpdate

timehost=shore

if [ $# -gt 0 ]; then
  timehost=$1
fi

/usr/sbin/ntpdate -b $timehost
if [ $? -eq 0 ]; then
    /root/ricohRTC -t
fi
