From cf48dd545bab7be656ac7e777189d9355061ff78 Mon Sep 17 00:00:00 2001 From: Stefan Huber Date: Sun, 5 Jan 2014 16:13:36 +0100 Subject: [PATCH] systemd: Add thinkpad-acpi-setup --- systemd/script/thinkpad-acpi-setup | 4 ++++ systemd/{ => system}/ip6tables.service | 0 systemd/{ => system}/iptables.service | 0 systemd/{ => system}/smapi.service | 0 systemd/system/thinkpad-acpi-setup.service | 11 +++++++++++ 5 files changed, 15 insertions(+) create mode 100755 systemd/script/thinkpad-acpi-setup rename systemd/{ => system}/ip6tables.service (100%) rename systemd/{ => system}/iptables.service (100%) rename systemd/{ => system}/smapi.service (100%) create mode 100644 systemd/system/thinkpad-acpi-setup.service 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 -- 2.39.5