#!/bin/bash
if [ -r /etc/timediff ]; then
  Timediff=`date -r /etc/timediff +%s`
  Now=`date +%s`
  if [ "${Timediff}" -gt "${Now}" ]; then
    Diff=`cat /etc/timediff | head -n 1`
    date -s "+${Diff} seconds" >/dev/null
    hwclock -w --noadjfile --utc
    exit 0
  fi
fi