#!/bin/bash

ENABLED=yes
[ "$ENABLED" != "yes" ] && exit 0

. /usr/lib/ublinux/os-config
[ "$HALTSAVETIME" = "no" ] && exit 0

#Setting clock
[ -f /etc/ublinux/clock ] && . /etc/ublinux/clock

HWCLOCKOPIONS="--utc"
[ "$UTC" = "false" ] && HWCLOCKOPIONS="--localtime"
hwclock -w $HWCLOCKOPIONS
