This commit is contained in:
julien
2025-09-23 19:27:33 +02:00
parent ba023e9f59
commit f3cdbcdc8c
13 changed files with 178 additions and 67 deletions

View File

@@ -1,16 +1,11 @@
#!/bin/bash
###########
### ZRAM
echo
echo " => ZRAM"
echo
if [ -f /usr/bin/zramswap ]
then
echo " -> Already done !"
else
dpkg -l zram-tools > /dev/null 2>&1
if [ $? -ne 0 ]; then
apt-get install zram-tools -y
sed -i '/#ALGO=lz4/s/^#//g' /etc/default/zramswap
sed -i '/#PERCENT=50/s/^#//g' /etc/default/zramswap