From: Stefan Huber Date: Sun, 5 Jan 2014 15:13:36 +0000 (+0100) Subject: systemd: Add thinkpad-acpi-setup X-Git-Url: https://git.sthu.org/?p=shutils.git;a=commitdiff_plain;h=cf48dd545bab7be656ac7e777189d9355061ff78 systemd: Add thinkpad-acpi-setup --- diff --git a/systemd/script/thinkpad-acpi-setup b/systemd/script/thinkpad-acpi-setup new file mode 100755 index 0000000..94f086d --- /dev/null +++ b/systemd/script/thinkpad-acpi-setup @@ -0,0 +1,4 @@ +#!/bin/sh + +set -e +echo 0xffffffff > /proc/acpi/ibm/hotkey diff --git a/systemd/ip6tables.service b/systemd/system/ip6tables.service similarity index 100% rename from systemd/ip6tables.service rename to systemd/system/ip6tables.service diff --git a/systemd/iptables.service b/systemd/system/iptables.service similarity index 100% rename from systemd/iptables.service rename to systemd/system/iptables.service diff --git a/systemd/smapi.service b/systemd/system/smapi.service similarity index 100% rename from systemd/smapi.service rename to systemd/system/smapi.service diff --git a/systemd/system/thinkpad-acpi-setup.service b/systemd/system/thinkpad-acpi-setup.service new file mode 100644 index 0000000..6ded90d --- /dev/null +++ b/systemd/system/thinkpad-acpi-setup.service @@ -0,0 +1,11 @@ +[Unit] +Description=Setup thinkpad-acpi kernel module properties +After=systemd-modules-load.service + +[Service] +Type=oneshot +RemainAfterExit=yes +ExecStart=/etc/systemd/scripts/thinkpad-acpi-setup + +[Install] +WantedBy=multi-user.target