pentoo-core: fix slightly broken pentoo-zram init.d

This commit is contained in:
Rick Farina (Zero_Chaos) 2022-10-04 21:09:37 -04:00
parent adcbddc37d
commit f5a6448c4f
No known key found for this signature in database
GPG key ID: A29433C0AA431DDC
2 changed files with 2 additions and 2 deletions

View file

@ -11,7 +11,7 @@ start() {
fi
modprobe zram
sleep 1
"$(nproc)" > /sys/devices/virtual/block/zram0/max_comp_streams || REVAL=$?
nproc > /sys/devices/virtual/block/zram0/max_comp_streams || REVAL=$?
echo zstd > /sys/devices/virtual/block/zram0/comp_algorithm || RETVAL=$?
echo "${ZRAM_ABSOLUTE/\.??/}" > /sys/devices/virtual/block/zram0/disksize || RETVAL=$?
eindent

View file

@ -143,7 +143,7 @@ src_install() {
if ! use pentoo-in-a-container; then
newinitd "${FILESDIR}"/pentoo-linux-symlinks.initd pentoo-linux-symlinks
newinitd "${FILESDIR}"/pentoo-powersave.initd pentoo-powersave
newinitd "${FILESDIR}"/pentoo-zram.initd-r4 pentoo-zram
newinitd "${FILESDIR}"/pentoo-zram.initd-r5 pentoo-zram
newconfd "${FILESDIR}"/pentoo-zram.confd pentoo-zram
fi
}