From a7c36d16f10b67c6f22cfb224082e53087e9e024 Mon Sep 17 00:00:00 2001 From: Patrick Simianer
Date: Sat, 5 Mar 2016 18:45:53 +0100 Subject: sleep and deep_sleep --- deep_sleep | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 deep_sleep (limited to 'deep_sleep') diff --git a/deep_sleep b/deep_sleep new file mode 100755 index 0000000..3fc0115 --- /dev/null +++ b/deep_sleep @@ -0,0 +1,9 @@ +#!/bin/zsh -x + +swapoff -a +rm -f /swapfile +dd if=/dev/zero of=/swapfile bs=1M count=2048 +mkswap /swapfile +swapon /swapfile +/usr/sbin/s2disk + -- cgit v1.2.3