Add some stuff

This commit is contained in:
Diogo Cordeiro
2020-09-16 16:11:26 +01:00
parent 88dd2cf9f1
commit 2c67b5490e
1376 changed files with 68542 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
#!/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