From c2d8cd73b32f7fe54df4f46995f9460c2d0a6f26 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Wed, 20 Oct 2021 16:11:19 +0200 Subject: [system-tweaks] Add module that sets desired sysctl options --- core/bin/setup_target | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/bin') diff --git a/core/bin/setup_target b/core/bin/setup_target index 5ad316b4..4ea9b824 100755 --- a/core/bin/setup_target +++ b/core/bin/setup_target @@ -352,7 +352,7 @@ scan_target() { [ -L "$item" ] || continue base="$( basename "$item" )" real="$( readlink -f "$item" )" - if [ -s "$item/module.conf" ]; then + if [ -f "$item/module.conf" ]; then if [ -n "${MODULE_PATHS["$base"]}" ] \ && [ "${MODULE_PATHS["$base"]}" != "$real" ]; then perror "$base exists in multiple sub-targets and links to different modules\n1: $real\n2: ${MODULE_PATHS["$base"]}" -- cgit v1.2.3-55-g7522