aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSøren Andersen <san@skov.dk>2021-01-21 12:01:44 +0100
committerArmin Kuster <akuster808@gmail.com>2021-01-28 16:59:02 -0800
commitb523c8c7c8a00771411f791fec4d6eb702c6c489 (patch)
tree516c8c2345fc303671140102472b2a6f22459361
parente5499dc4bcbf4ea6456d65fa917547bec7a190a3 (diff)
downloadmeta-openembedded-contrib-b523c8c7c8a00771411f791fec4d6eb702c6c489.tar.gz
meta-openembedded-contrib-b523c8c7c8a00771411f791fec4d6eb702c6c489.tar.bz2
meta-openembedded-contrib-b523c8c7c8a00771411f791fec4d6eb702c6c489.zip
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 3c8ad9192c1c9f4323bdc7ff28456f11db689adb) Signed-off-by: Ulrich Ölmann <u.oelmann@pengutronix.de> Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rwxr-xr-xmeta-oe/recipes-extended/zram/zram/zram-swap-init2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta-oe/recipes-extended/zram/zram/zram-swap-init b/meta-oe/recipes-extended/zram/zram/zram-swap-init
index 0643dbca23..ccc3aafe3a 100755
--- a/meta-oe/recipes-extended/zram/zram/zram-swap-init
+++ b/meta-oe/recipes-extended/zram/zram/zram-swap-init
@@ -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))