From e4366de71a4b398b0c1f8447620cbddd85f59025 Mon Sep 17 00:00:00 2001 From: AuxXxilium Date: Sun, 28 Jan 2024 18:39:27 +0100 Subject: [PATCH] acpid: fix button Signed-off-by: AuxXxilium --- acpid/install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/acpid/install.sh b/acpid/install.sh index 2783c242..2219a62e 100755 --- a/acpid/install.sh +++ b/acpid/install.sh @@ -17,8 +17,9 @@ if [ "${1}" = "late" ]; then echo "[Service]" >>${DEST} echo "Restart=always" >>${DEST} echo "RestartSec=30" >>${DEST} - echo "ExecStartPre=/usr/sbin/modprobe button" >>${DEST} + echo "ExecStartPre=-/sbin/modprobe button" >>${DEST} echo "ExecStart=/usr/sbin/acpid -f" >>${DEST} + echo "ExecStopPost=-/sbin/modprobe -r button" >>${DEST} echo >>${DEST} echo "[X-Synology]" >>${DEST} echo "Author=Virtualization Team" >>${DEST}