From ca60b8172efc1e82284951ac63220c2371f792bf Mon Sep 17 00:00:00 2001 From: MatMoul Date: Fri, 17 Jun 2016 22:13:11 +0200 Subject: [PATCH] add systemd unit and udev rules --- systemd/g810-led-reboot.service | 14 ++++++++++++++ systemd/g810-led.service | 10 ++++++++++ 2 files changed, 24 insertions(+) create mode 100644 systemd/g810-led-reboot.service create mode 100644 systemd/g810-led.service diff --git a/systemd/g810-led-reboot.service b/systemd/g810-led-reboot.service new file mode 100644 index 0000000..4a637f5 --- /dev/null +++ b/systemd/g810-led-reboot.service @@ -0,0 +1,14 @@ +[Unit] +Description=Set G810 profile on shutdown +DefaultDependencies=no +Before=shutdown.target reboot.target halt.target + + +[Service] +ExecStart=/usr/bin/g810-led -p /etc/g810-led/reboot +Type=oneshot +RemainAfterExit=yes + +[Install] +WantedBy=shutdown.target + diff --git a/systemd/g810-led.service b/systemd/g810-led.service new file mode 100644 index 0000000..4d4b73e --- /dev/null +++ b/systemd/g810-led.service @@ -0,0 +1,10 @@ +[Unit] +Description=Set Logitech G810 Led Profile + +[Service] +ExecStart=/bin/g810-led -p /etc/g810-led/profile + +[Install] +WantedBy=multi-user.target +Type=oneshot +RemainAfterExit=yes