aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSøren Andersen <san@skov.dk>2021-01-21 12:01:08 +0100
committerArmin Kuster <akuster808@gmail.com>2021-01-28 17:19:28 -0800
commitbdb79efaba481b2d9807eab59df04fb67e5277dd (patch)
tree57f23fb02eb98404c2f1e8ececafcd151d35a0a4
parent4e6de3045c96fce9516311ba42911e209a1b84ba (diff)
downloadmeta-openembedded-contrib-bdb79efaba481b2d9807eab59df04fb67e5277dd.tar.gz
meta-openembedded-contrib-bdb79efaba481b2d9807eab59df04fb67e5277dd.tar.bz2
meta-openembedded-contrib-bdb79efaba481b2d9807eab59df04fb67e5277dd.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>
-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))