summaryrefslogtreecommitdiff
path: root/kodi-rpi/kodi-gbm.pre-install
diff options
context:
space:
mode:
Diffstat (limited to 'kodi-rpi/kodi-gbm.pre-install')
-rw-r--r--kodi-rpi/kodi-gbm.pre-install10
1 files changed, 10 insertions, 0 deletions
diff --git a/kodi-rpi/kodi-gbm.pre-install b/kodi-rpi/kodi-gbm.pre-install
new file mode 100644
index 0000000..03b2e52
--- /dev/null
+++ b/kodi-rpi/kodi-gbm.pre-install
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+addgroup -S kodi 2>/dev/null
+adduser -S -D -h /var/lib/kodi -s /sbin/nologin -G kodi kodi 2>/dev/null
+
+for group in video audio input; do
+ adduser kodi $group 2>/dev/null
+done
+
+exit 0