Skip to contentSkip to conversation

zram: fix sourcing of zram parameters

PATCH New Ulrich ?lmann 1 participant 1 message Jan 18, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 zram: fix sourcing of zram parameters

From: Søren Andersen <[email protected]>

---
 meta-oe/recipes-extended/zram/zram/zram-swap-init | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/recipes-extended/zram/zram/zram-swap-init +1 -1
index 0643dbca2341..ccc3aafe3a6f 100755
@@ -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))
Signature · 1 line
2.30.0