summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorknolax <1339802534.kk@gmail.com>2017-12-28 22:57:17 -0500
committerknolax <1339802534.kk@gmail.com>2017-12-28 22:57:17 -0500
commit1e83a1e789b55e829f9cfe0f90ee8b50c07c3e31 (patch)
treed5283bae6160674b2ae82a1e66a6cb1fa0e075da
parent69928cf307b64887f791597df3a0c6b1261dcc27 (diff)
fixed systemd unit file and added a daemon reload to the install target.
-rw-r--r--Makefile1
-rw-r--r--skey.service2
2 files changed, 2 insertions, 1 deletions
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