summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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