/usr/share/dell/scripts/non-negotiable/04-disable-hibernate.sh is in dell-recovery 1.48.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | #!/bin/sh
# Disable hibernate (S4) if RAM >= 4GB. (LP: #1284474)
for i in $(dmidecode -t 17 | grep Size | cut -d ':' -f 2 | cut -d ' ' -f 2); do
memsize=$((${memsize:-0} + $i))
done
if [ ${memsize:-0} -ge 4096 ]; then
if dpkg-query -W manage-hibernate >/dev/null 2>&1; then
apt-get --yes purge manage-hibernate
fi
fi
# vim:fileencodings=utf-8:expandtab:tabstop=4:shiftwidth=4:softtabstop=4
|