diff options
author | Patrick Simianer <p@simianer.de> | 2016-03-05 18:45:53 +0100 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2016-03-05 18:45:53 +0100 |
commit | a7c36d16f10b67c6f22cfb224082e53087e9e024 (patch) | |
tree | 8100d6e3df8895bc43af70ecb4318e773f930a04 /deep_sleep | |
parent | d2dd6e6c91f21035074a9f0f8e73e0ce63271250 (diff) |
sleep and deep_sleep
Diffstat (limited to 'deep_sleep')
-rwxr-xr-x | deep_sleep | 9 |
1 files changed, 9 insertions, 0 deletions
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 + |