ubuntu-22.04.3-desktop-amd64/casper/filesystem/usr/lib/systemd/system-sleep/unattended-upgrades

11 lines
219 B
Bash
Executable File

#!/bin/sh
set -e
if [ "$2" = "hibernate" ] || [ "$2" = "hybrid-sleep" ]; then
case "$1" in
pre)
/usr/share/unattended-upgrades/unattended-upgrade-shutdown --stop-only
;;
esac
fi