mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-05-30 13:00:02 +00:00
zram: fix sourcing of zram parameters
Signed-off-by: Søren Andersen <san@skov.dk>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit 3c8ad9192c)
Signed-off-by: Ulrich Ölmann <u.oelmann@pengutronix.de>
This commit is contained in:
committed by
Armin Kuster
parent
4e6de3045c
commit
bdb79efaba
@@ -14,7 +14,7 @@ fi
|
|||||||
ZRAM_SIZE_PERCENT=100
|
ZRAM_SIZE_PERCENT=100
|
||||||
ZRAM_ALGORITHM=lz4
|
ZRAM_ALGORITHM=lz4
|
||||||
|
|
||||||
[ -f /etc/default/zram ] && ./etc/default/zram || true
|
[ -f /etc/default/zram ] && . /etc/default/zram || true
|
||||||
|
|
||||||
memtotal=$(grep MemTotal /proc/meminfo | awk ' { print $2 } ')
|
memtotal=$(grep MemTotal /proc/meminfo | awk ' { print $2 } ')
|
||||||
memzram=$(($memtotal*${ZRAM_SIZE_PERCENT}/100))
|
memzram=$(($memtotal*${ZRAM_SIZE_PERCENT}/100))
|
||||||
|
|||||||
Reference in New Issue
Block a user