AnonSec Shell
Server IP : 85.193.89.191  /  Your IP : 3.133.143.36
Web Server : Apache
System : Linux 956367-cx40159.tmweb.ru 3.10.0-1160.105.1.el7.x86_64 #1 SMP Thu Dec 7 15:39:45 UTC 2023 x86_64
User : bitrix ( 600)
PHP Version : 8.1.27
Disable Function : NONE
MySQL : OFF  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /proc/977/cwd/lib64/pm-utils/sleep.d/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /proc/977/cwd/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

Anon7 - 2022
AnonSec Team