From 356157592e86e78f293dba45abe258889b47b685 Mon Sep 17 00:00:00 2001 From: Tobias Powalowski Date: Tue, 17 May 2022 13:42:55 +0200 Subject: [PATCH] change cat with direct grep --- usr/lib/archboot/update-installer.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/lib/archboot/update-installer.sh b/usr/lib/archboot/update-installer.sh index 8222e53d7..ecf911085 100644 --- a/usr/lib/archboot/update-installer.sh +++ b/usr/lib/archboot/update-installer.sh @@ -88,7 +88,7 @@ _update_installer_check() { _zram_initialize() { # add defaults _ZRAM_ALGORITHM=${_ZRAM_ALGORITHM:-"zstd"} - if ! cat /proc/modules | grep -qw zram; then + if ! grep -qw zram /proc/modules; then modprobe zram num_devices=2> /dev/tty7 2>&1 echo "${_ZRAM_ALGORITHM}" >/sys/block/zram0/comp_algorithm echo "${_ZRAM_ALGORITHM}" >/sys/block/zram1/comp_algorithm