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:
Søren Andersen authored and Armin Kuster committed 2021-01-28 17:19:28 -08:00
1 parent 4e6de3045c
commit bdb79efaba
1 file changed
+1 -1
@@ -14,7 +14,7 @@ fi
ZRAM_SIZE_PERCENT=100
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 } ')
memzram=$(($memtotal*${ZRAM_SIZE_PERCENT}/100))