summarylogtreecommitdiffstats
path: root/otd
diff options
context:
space:
mode:
Diffstat (limited to 'otd')
-rwxr-xr-xotd12
1 files changed, 12 insertions, 0 deletions
diff --git a/otd b/otd
new file mode 100755
index 00000000000..a5538718440
--- /dev/null
+++ b/otd
@@ -0,0 +1,12 @@
+#!/bin/bash
+systemctl --user --quiet is-active opentabletdriver.service
+daemonactive=$?
+
+if [ $daemonactive != 0 ]
+then
+ echo "OpenTabletDriver Daemon not running, starting"
+ systemctl --user start opentabletdriver.service
+fi
+
+cd /usr/share/OpenTabletDriver
+dotnet OpenTabletDriver.Console.dll "$@" \ No newline at end of file