diff options
-rw-r--r-- | Makefile | 1 | ||||
-rw-r--r-- | skey.service | 7 |
2 files changed, 8 insertions, 0 deletions
@@ -8,5 +8,6 @@ install: cp skey.ko /lib/modules/$(shell uname -r)/kernel/drivers/hid/skey.ko depmod cp skey.dtbo /boot/overlays/skey.dtbo + cp skey.service /etc/systemd/system/skey.service clean: make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean diff --git a/skey.service b/skey.service new file mode 100644 index 0000000..16ded57 --- /dev/null +++ b/skey.service @@ -0,0 +1,7 @@ +[Unit] +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 +[Install] +WantedBy=multi-user.target graphical.target emergency.target |