From 08417dca6fee28869abb459595351f0e5dd0b4a3 Mon Sep 17 00:00:00 2001 From: Kr1ss Date: Sat, 27 Feb 2021 18:31:05 +0100 Subject: [PATCH] [zram-init.in] fix opening brace in variable ref. This fixes a typo introduced by 24949d88f381ff22b57257bb532691ae7a9914c9 which broke the `zram-init` script. --- sbin/zram-init.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbin/zram-init.in b/sbin/zram-init.in index f8fa769..e5de94c 100755 --- a/sbin/zram-init.in +++ b/sbin/zram-init.in @@ -385,7 +385,7 @@ else [ -z "$streams" ] || SysCtl "$streams" "$block/max_comp_streams" \ } ! $writeback || InitWriteback fi -[ -z "$mem_limit" ] || SysCtl "$[mem_limit}M" "$block/mem_limit" || \ +[ -z "$mem_limit" ] || SysCtl "${mem_limit}M" "$block/mem_limit" || \ xWarning 'failed to set zram${dev} mem_limit' eval "set -- a $mkfs_opt"