HEX
Server: Apache/2.4.41 (Amazon) OpenSSL/1.0.2k-fips PHP/5.6.40
System: Linux ip-172-31-40-18 4.14.146-93.123.amzn1.x86_64 #1 SMP Tue Sep 24 00:45:23 UTC 2019 x86_64
User: apache (48)
PHP: 5.6.40
Disabled: NONE
Upload Files
File: //usr/lib64/pm-utils/sleep.d/90clock
#!/bin/sh
# Synchronize system time with hardware time.
# Modern kernels handle this correctly so we skip this hook by default.

. "${PM_FUNCTIONS}"

suspend_clock()
{
        printf "Saving system time to hardware clock..."
	/sbin/hwclock --systohc >/dev/null 2>&1 0<&1 && echo Done. || \
	    echo Failed.
}

resume_clock()
{
        printf "Loading system time from hardware clock..."
	/sbin/hwclock --hctosys >/dev/null 2>&1 0<&1 && echo Done. || \
	    echo Failed.
}

is_set "$NEED_CLOCK_SYNC" || exit $NA

case "$1" in
	hibernate|suspend) suspend_clock ;;
	thaw|resume) resume_clock ;;
	*) exit $NA ;;
esac