summaryrefslogtreecommitdiffstats
path: root/source/ap/usbmuxd/doinst.sh
diff options
context:
space:
mode:
Diffstat (limited to 'source/ap/usbmuxd/doinst.sh')
-rw-r--r--source/ap/usbmuxd/doinst.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/ap/usbmuxd/doinst.sh b/source/ap/usbmuxd/doinst.sh
new file mode 100644
index 000000000..9695ebcd8
--- /dev/null
+++ b/source/ap/usbmuxd/doinst.sh
@@ -0,0 +1,5 @@
+# Make sure that the usbmux user exists with the GID for plugdev access:
+if ! grep -q "^usbmux:" etc/passwd ; then
+ echo "usbmux:x:52:83:User for usbmux daemon:/var/empty:/bin/false" >> etc/passwd
+fi
+