File: 000kernel-change

package info (click to toggle)
pm-utils 1.4.1-21
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,432 kB
  • sloc: sh: 3,069; xml: 1,035; makefile: 174; ansic: 152
file content (8 lines) | stat: -rwxr-xr-x 292 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
#!/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