#!/bin/bash ENABLED=yes [ "$ENABLED" != "yes" ] && exit 0 . /usr/lib/ublinux/os-config [ "$HALTSAVETIME" = "no" ] && exit 0 #Setting clock SOURCE=${SYSCONF}/clock; [ -f ${SOURCE} ] && . ${SOURCE} 2>/dev/null HWCLOCKOPIONS="--utc" [ "$UTC" = "false" ] && HWCLOCKOPIONS="--localtime" hwclock -w $HWCLOCKOPIONS