summaryrefslogtreecommitdiffstats
path: root/extra/usbmuxd/usbmuxd.install
diff options
context:
space:
mode:
authorsibel <lesibel at free dot fr>2010-07-15 13:57:18 +0200
committersibel <lesibel at free dot fr>2010-07-15 13:57:18 +0200
commit8c5934261cb3ce65250f9494fd2095f8a8fb0853 (patch)
tree55e3d8fcbb97d90c59117ff3fb43535598ada6c5 /extra/usbmuxd/usbmuxd.install
parent45c08b32032919bf50464464fc349cdd95a24572 (diff)
downloadnutyx-pakxe-8c5934261cb3ce65250f9494fd2095f8a8fb0853.tar.gz
nutyx-pakxe-8c5934261cb3ce65250f9494fd2095f8a8fb0853.tar.bz2
nutyx-pakxe-8c5934261cb3ce65250f9494fd2095f8a8fb0853.tar.xz
nutyx-pakxe-8c5934261cb3ce65250f9494fd2095f8a8fb0853.zip
ajout de usbmuxd#1.0.4-1
Diffstat (limited to 'extra/usbmuxd/usbmuxd.install')
-rw-r--r--extra/usbmuxd/usbmuxd.install21
1 files changed, 21 insertions, 0 deletions
diff --git a/extra/usbmuxd/usbmuxd.install b/extra/usbmuxd/usbmuxd.install
new file mode 100644
index 000000000..5b46db012
--- /dev/null
+++ b/extra/usbmuxd/usbmuxd.install
@@ -0,0 +1,21 @@
+post_install() {
+ getent group usbmux >/dev/null 2>&1 || usr/sbin/groupadd -g 140 usbmux
+ getent passwd usbmux >/dev/null 2>&1 || usr/sbin/useradd -c 'usbmux user' -u 140 -g usbmux -d / -s /sbin/nologin usbmux
+
+ usr/bin/passwd -l usbmux &>/dev/null
+}
+
+pre_upgrade () {
+ if [ $2 == "1.0.4-1" ]; then
+ pre_remove $1
+ fi
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+pre_remove() {
+ getent passwd usbmux >/dev/null 2>&1 && userdel usbmux
+ getent group usbmux >/dev/null 2>&1 && groupdel usbmux
+}