mkimage-profiles/features.in/power/rootfs/image-scripts.d/50-power
Michael Shigorin ef05303be2 power: don't mess up e2k's /etc/modules
button.ko isn't compiled within elbrus kernel (or used in any way).
2020-08-31 14:23:57 +03:00

7 lines
181 B
Bash
Executable File

#!/bin/sh -efu
# provide kernel interface for ACPI power button
if [ `arch` != e2k -a -x /etc/init.d/acpid ]; then
grep -qsx button /etc/modules || echo button >> /etc/modules
fi