summaryrefslogtreecommitdiff
path: root/pm/sleep.d/00logging
blob: 356acb00c7134e3a7566fe92e690d6c91d330cce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash

. /usr/lib/pm-utils/functions

case "$1" in
        hibernate|suspend)
		[ -n "$PM_LOGFILE" ] || exit 0
		echo -e "Kernel version: `/bin/uname -a`\n"
		echo -e "`lsmod`\n"
		echo -e "`free`\n"
		;;
esac

exit 0