]> git.sthu.org Git - shutils.git/commitdiff
systemd: Add thinkpad-acpi-setup
authorStefan Huber <shuber@sthu.org>
Sun, 5 Jan 2014 15:13:36 +0000 (16:13 +0100)
committerStefan Huber <shuber@sthu.org>
Sun, 5 Jan 2014 15:14:49 +0000 (16:14 +0100)
systemd/script/thinkpad-acpi-setup [new file with mode: 0755]
systemd/system/ip6tables.service [moved from systemd/ip6tables.service with 100% similarity]
systemd/system/iptables.service [moved from systemd/iptables.service with 100% similarity]
systemd/system/smapi.service [moved from systemd/smapi.service with 100% similarity]
systemd/system/thinkpad-acpi-setup.service [new file with mode: 0644]

diff --git a/systemd/script/thinkpad-acpi-setup b/systemd/script/thinkpad-acpi-setup
new file mode 100755 (executable)
index 0000000..94f086d
--- /dev/null
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+set -e
+echo 0xffffffff > /proc/acpi/ibm/hotkey
diff --git a/systemd/system/thinkpad-acpi-setup.service b/systemd/system/thinkpad-acpi-setup.service
new file mode 100644 (file)
index 0000000..6ded90d
--- /dev/null
@@ -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