diff options
author | tnut <thierryn1 at hispeed dot ch> | 2010-07-15 17:15:11 +0200 |
---|---|---|
committer | tnut <thierryn1 at hispeed dot ch> | 2010-07-15 17:15:11 +0200 |
commit | 5ad3f4a8c8e491105f821c9503acc93081296288 (patch) | |
tree | 65b658b9a1b270a47463aa45bf9a9f8feed8174b /extra/usbmuxd/usbmuxd.install | |
parent | 4d359d4ade9b2e39e6adfef878adf8b0eef02b62 (diff) | |
parent | 120443897fc2c4994a9ab50672593a765e41bb7e (diff) | |
download | nutyx-extra-5ad3f4a8c8e491105f821c9503acc93081296288.tar.gz nutyx-extra-5ad3f4a8c8e491105f821c9503acc93081296288.tar.bz2 nutyx-extra-5ad3f4a8c8e491105f821c9503acc93081296288.tar.xz nutyx-extra-5ad3f4a8c8e491105f821c9503acc93081296288.zip |
Merge branch 'master' of ssh://kiao.no-ip.info:443/~/attapu
Diffstat (limited to 'extra/usbmuxd/usbmuxd.install')
-rw-r--r-- | extra/usbmuxd/usbmuxd.install | 21 |
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 +} |