mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
17 lines
359 B
Bash
Executable file
17 lines
359 B
Bash
Executable file
#!/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
|