aboutsummaryrefslogtreecommitdiff
path: root/zram.sh
diff options
context:
space:
mode:
authorMitch Riedstra <mitch@riedstra.us>2019-10-15 20:56:41 -0400
committerMitch Riedstra <mitch@riedstra.us>2019-10-15 20:56:41 -0400
commiteefbd029b55b2782b0d7b11b4989ce0ca9b256cd (patch)
tree535511fd3154342117d67171e28a312bd30c7f87 /zram.sh
parent5840f413825e053b645a338d71c1916a06094335 (diff)
downloaddotfiles-eefbd029b55b2782b0d7b11b4989ce0ca9b256cd.tar.gz
dotfiles-eefbd029b55b2782b0d7b11b4989ce0ca9b256cd.tar.xz
Massive organization of my dotfiles
Diffstat (limited to 'zram.sh')
-rwxr-xr-xzram.sh27
1 files changed, 0 insertions, 27 deletions
diff --git a/zram.sh b/zram.sh
deleted file mode 100755
index bacfb1f..0000000
--- a/zram.sh
+++ /dev/null
@@ -1,27 +0,0 @@
-#!/bin/sh
-
-if [ $(id -u) -ne 0 ] ; then
- echo "Please run as root"
- exit 1;
-fi
-
-
-start() {
- modprobe zram
- echo lz4 > /sys/block/zram0/comp_algorithm
- echo 2G > /sys/block/zram0/disksize
-
- mkswap --label zram0 /dev/zram0
- swapon --priority 100 /dev/zram0
-
- sysctl vm.swappiness=100
-}
-
-stop() {
- swapoff /dev/zram0
- modprobe -r zram
-
- sysctl vm.swappiness=60
-}
-
-$1