diff options
-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 + |