summaryrefslogtreecommitdiffstats
path: root/abs/extra/usbmuxd/usbmuxd.install
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2012-04-07 21:07:21 (GMT)
committerBritney Fransen <brfransen@gmail.com>2012-04-07 21:07:21 (GMT)
commit0c444b6185e3e5c3a8039d6a938e1bd7a654c63f (patch)
tree9dddef5fa35cee68446b8fde35209ed9879c3396 /abs/extra/usbmuxd/usbmuxd.install
parent8c856b1391df73272bf373561410438d91981f46 (diff)
downloadlinhes_pkgbuild-0c444b6185e3e5c3a8039d6a938e1bd7a654c63f.zip
linhes_pkgbuild-0c444b6185e3e5c3a8039d6a938e1bd7a654c63f.tar.gz
linhes_pkgbuild-0c444b6185e3e5c3a8039d6a938e1bd7a654c63f.tar.bz2
usbmuxd: Initial inclusion; dep of libimobiledevice
Diffstat (limited to 'abs/extra/usbmuxd/usbmuxd.install')
-rw-r--r--abs/extra/usbmuxd/usbmuxd.install19
1 files changed, 19 insertions, 0 deletions
diff --git a/abs/extra/usbmuxd/usbmuxd.install b/abs/extra/usbmuxd/usbmuxd.install
new file mode 100644
index 0000000..1a48596
--- /dev/null
+++ b/abs/extra/usbmuxd/usbmuxd.install
@@ -0,0 +1,19 @@
+post_install() {
+ groupadd -g 140 usbmux &>/dev/null
+ useradd -c 'usbmux user' -u 140 -g usbmux -d / -s /sbin/nologin usbmux &>/dev/null
+ passwd -l usbmux &>/dev/null
+}
+
+post_upgrade() {
+ getent group usbmux >/dev/null 2>&1 || groupadd -g 140 usbmux &>/dev/null
+ getent passwd usbmux >/dev/null 2>&1 || useradd -c 'usbmux user' -u 140 -g usbmux -d / -s /sbin/nologin usbmux &>/dev/null
+}
+
+post_remove() {
+ if getent passwd usbmux >/dev/null 2>&1; then
+ userdel usbmux
+ fi
+ if getent group usbmux >/dev/null 2>&1; then
+ groupdel usbmux
+ fi
+}