dotfiles/.local/bin/tmp_swap

10 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