mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-05-04 04:30:56 +02:00
pentoo-core: fix slightly broken pentoo-zram init.d
This commit is contained in:
parent
adcbddc37d
commit
f5a6448c4f
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
@ -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
|
||||
}
|
||||
Loading…
Reference in a new issue