KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17
System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64
User : nobody ( 99)
PHP Version : 5.2.17
Disable Function : NONE
Directory :  /proc/21573/root/usr/lib/pm-utils/sleep.d/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/21573/root/usr/lib/pm-utils/sleep.d/90clock
#!/bin/bash

. /usr/lib/pm-utils/functions

suspend_clock() {
    if [ ! -f /var/run/pm/ntpd.lock ]; then
	touch /var/run/pm/ntpd.lock
    	stopservice ntpd
    fi

    /sbin/hwclock --systohc >/dev/null 2>&1 0<&1
    return $?
}

resume_clock() {
    /sbin/hwclock --hctosys >/dev/null 2>&1 0<&1
    rc=$?

    # Bring back ntpd _after_ NetworkManager and such come back...
    ( touch /var/run/pm/ntpd.lock ;
      sleep 20 ; 
      restartservice ntpd ;
      rm -f /var/run/pm/ntpd.lock
    ) &
    return $rc
}

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

exit $?

Anon7 - 2021