mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
17 lines
359 B
Bash
17 lines
359 B
Bash
#!/bin/bash
|
|
# Update our hwclock for system drift
|
|
|
|
. /etc/rc.conf
|
|
|
|
HWCLOCK_PARAMS="--adjust"
|
|
if [ "$HARDWARECLOCK" = "UTC" ]; then
|
|
HWCLOCK_PARAMS="$HWCLOCK_PARAMS --utc"
|
|
elif [ "$HARDWARECLOCK" = "localtime" ]; then
|
|
HWCLOCK_PARAMS="$HWCLOCK_PARAMS --localtime"
|
|
else
|
|
HWCLOCK_PARAMS=""
|
|
fi
|
|
|
|
if [ -n "$HWCLOCK_PARAMS" ]; then
|
|
/sbin/hwclock $HWCLOCK_PARAMS
|
|
fi
|