dotfiles/.local/bin/tmp_swap

10 lines
156 B
Text
Raw Permalink Normal View History

2018-12-26 00:40:38 +01:00
#!/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