power: don't mess up e2k's /etc/modules

button.ko isn't compiled within elbrus kernel (or used in any way).
This commit is contained in:
Michael Shigorin 2019-09-02 19:31:01 +03:00
parent 01bdf28b47
commit ef05303be2

View File

@ -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