From ef05303be206c7a5e6f3dabdf80ac75d25d7d328 Mon Sep 17 00:00:00 2001 From: Michael Shigorin Date: Mon, 2 Sep 2019 19:31:01 +0300 Subject: [PATCH] power: don't mess up e2k's /etc/modules button.ko isn't compiled within elbrus kernel (or used in any way). --- features.in/power/rootfs/image-scripts.d/50-power | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features.in/power/rootfs/image-scripts.d/50-power b/features.in/power/rootfs/image-scripts.d/50-power index 8506655e..15d82fe5 100755 --- a/features.in/power/rootfs/image-scripts.d/50-power +++ b/features.in/power/rootfs/image-scripts.d/50-power @@ -1,6 +1,6 @@ #!/bin/sh -efu # provide kernel interface for ACPI power button -if [ -x /etc/init.d/acpid ]; then +if [ `arch` != e2k -a -x /etc/init.d/acpid ]; then grep -qsx button /etc/modules || echo button >> /etc/modules fi