sys-apps/calculate-utils: init.d/zram

* изменены название и описание параметров
mhiretskiy
parent d8ab12c36c
commit a2d1caa168

@ -1,18 +1,12 @@
# Calculate protected exists(/etc/conf.d/zram)==
# RESTORE_ON_START:
# Compression algorithm for zram disk
COMP_ALGORITHM="zstd"
# DISKSIZE:
# Zram disk size
# Memory percent or absolute value with suffix (K,M,G)
# Compression algorithm for zram disk
COMPRESSION="zstd"
# Zram disk size in percent of RAM or absolute value with suffix (K,M,G)
DISKSIZE="200%"
# START
# Start zram swap disk
# withoutswap - start only system swapless
# swapless - start only for swapless system
# always - start anyway
START="withoutswap"
START="swapless"

@ -28,7 +28,7 @@ start()
ebegin "Activating zram swap devices"
local disksize;
modprobe zram
echo ${COMP_ALGORITHM:-zstd} >/sys/block/zram0/comp_algorithm
echo ${COMPRESSION:-zstd} >/sys/block/zram0/comp_algorithm
if [[ ${DISKSIZE:-200%} =~ ^([0-9]+)%$ ]]
then
local perc="${BASH_REMATCH[1]}"

Loading…
Cancel
Save