From 1e83a1e789b55e829f9cfe0f90ee8b50c07c3e31 Mon Sep 17 00:00:00 2001 From: knolax <1339802534.kk@gmail.com> Date: Thu, 28 Dec 2017 22:57:17 -0500 Subject: fixed systemd unit file and added a daemon reload to the install target. --- Makefile | 1 + skey.service | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 5daf5b4..d450668 100644 --- a/Makefile +++ b/Makefile @@ -9,5 +9,6 @@ install: depmod cp skey.dtbo /boot/overlays/skey.dtbo cp skey.service /etc/systemd/system/skey.service + systemctl daemon-reload clean: make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean diff --git a/skey.service b/skey.service index 16ded57..3d10b68 100644 --- a/skey.service +++ b/skey.service @@ -2,6 +2,6 @@ Description="Sets up and loads the drivers for the Omnicom Switch Keyboard" Type=oneshot [Service] -ExecStart=gpio -g mode 3 out;gpio -g mode 6 out;gpio -g mode 5 out;gpio -g mode 10 low;gpio -g mode 24 low;gpio -g mode 23 low;gpio -g mode 22 low;gpio -g mode 27 low;gpio -g mode 18 low;gpio -g mode 17 low;gpio -g mode 15 low;gpio -g mode 14 low;gpio -g mode 4 low;modprobe skey +ExecStart=/bin/bash -c "gpio -g mode 3 out;gpio -g mode 6 out;gpio -g mode 5 out;gpio -g mode 10 down;gpio -g mode 24 down;gpio -g mode 23 down;gpio -g mode 22 down;gpio -g mode 27 down;gpio -g mode 18 down;gpio -g mode 17 down;gpio -g mode 15 down;gpio -g mode 14 down;gpio -g mode 4 down;modprobe skey" [Install] WantedBy=multi-user.target graphical.target emergency.target -- cgit v1.1