summaryrefslogtreecommitdiff
path: root/skey.service
diff options
context:
space:
mode:
authorknolax <1339802534.kk@gmail.com>2017-12-28 22:15:44 -0500
committerknolax <1339802534.kk@gmail.com>2017-12-28 22:15:44 -0500
commit69928cf307b64887f791597df3a0c6b1261dcc27 (patch)
tree275b65a5270f7a9a84911c5f2a9c9167fdd3b790 /skey.service
parent25ed4fad8b7f5b9133bc2243680b7693470e0466 (diff)
added systemd unit to initialize pin modes and load the kernel module on startup, yet to be tested
Diffstat (limited to 'skey.service')
-rw-r--r--skey.service7
1 files changed, 7 insertions, 0 deletions
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