OXIESEC PANEL
- Current Dir:
/
/
etc
/
pm
/
sleep.d
Server IP: 10.0.0.4
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
10/14/2020 08:20:11 AM
rwxr-xr-x
📄
10_grub-common
210 bytes
08/24/2020 08:45:45 AM
rwxr-xr-x
📄
10_unattended-upgrades-hibernate
672 bytes
02/17/2020 11:37:03 AM
rwxr-xr-x
Editing: 10_unattended-upgrades-hibernate
Close
#!/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 --stop-only fi ;; resume|thaw) # nothing ;; esac