From 6a352733f9ce525970445b76948af4ec188a39ad Mon Sep 17 00:00:00 2001 From: xSmurf Date: Tue, 22 Sep 2015 23:05:12 +0000 Subject: [PATCH] Added suspend shortcut command --- board/coreboot/rootfs-additions/sbin/suspend | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 board/coreboot/rootfs-additions/sbin/suspend diff --git a/board/coreboot/rootfs-additions/sbin/suspend b/board/coreboot/rootfs-additions/sbin/suspend new file mode 100755 index 0000000..810b081 --- /dev/null +++ b/board/coreboot/rootfs-additions/sbin/suspend @@ -0,0 +1,10 @@ +#!/bin/sh + +if [ -e /sys/power/state ]; then + echo mem > /sys/power/state +else + echo "System power state missing" + exit 1 +fi + +exit $?