chore: format
This commit is contained in:
parent
496d4fc26e
commit
f8ae139e3b
1 changed files with 1 additions and 2 deletions
|
@ -18,9 +18,8 @@ elif command_exists "dnf"; then
|
|||
echo 'zram' | sudo tee /etc/modules-load.d/zram.conf
|
||||
echo 'ACTION=="add", KERNEL=="zram0", ATTR{initstate}=="0", ATTR{comp_algorithm}="zstd", ATTR{disksize}="48G", RUN="/usr/bin/mkswap -U clear %N", TAG+="systemd"' | sudo tee /etc/udev/rules.d/99-zram.rules
|
||||
zram_fstab='/dev/zram0 none swap defaults,discard,pri=160 0 0'
|
||||
if ! grep -q "$zram_fstab" /etc/fstab; then
|
||||
if ! grep -q "$zram_fstab" /etc/fstab; then
|
||||
echo "$zram_fstab" | sudo tee -a /etc/fstab
|
||||
fi
|
||||
echo '@reboot bash -c "mkswap -U clear /dev/zram0; swapon --discard --priority 160 /dev/zram0"' | sudo crontab -
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue