linuxOS_AP05/debian/test/usr/lib/pm-utils/sleep.d/000kernel-change
2025-09-26 09:40:02 +08:00

9 lines
292 B
Bash
Executable File

#!/bin/sh
# Check for and abort a hibernate if the kernel indicates it has been
# updated, as we will be completly unable to resume.
if [ "$1" = "hibernate" ] && [ -f "/var/run/do-not-hibernate" ]; then
echo "kernel update inhibits hibernate (/var/run/do-not-hibernate present)"
exit 1
fi