unattended-upgrades 219 B

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