dotfiles/.local/bin/tmp_swap

9 lines
156 B
Bash
Executable file

#!/bin/bash
if [[ $1 = "on" ]]
then
sudo mount -o remount,size=12G,noatime /tmp
elif [[ $1 = "off" ]]
then
sudo mount -o remount,size=4G,noatime /tmp
fi