From: Rene Wagner Date: Sun, 21 May 2006 11:31:43 +0000 (+0200) Subject: ppp-dialin: don't error out in postinst if ppp user already exists. Fixes Bug #1625. X-Git-Tag: familiar-v0.8.4-rc3~77 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=d3d72023dfa2b4fe31d0e5deef3ac26a1e1da5cd;p=familiar-h63xx-build.git ppp-dialin: don't error out in postinst if ppp user already exists. Fixes Bug #1625. Signed-off-by: Rene Wagner --- diff --git a/org.handhelds.familiar/packages/ppp-dialin/ppp-dialin_0.1.bb b/org.handhelds.familiar/packages/ppp-dialin/ppp-dialin_0.1.bb index 815ed14..0d04267 100644 --- a/org.handhelds.familiar/packages/ppp-dialin/ppp-dialin_0.1.bb +++ b/org.handhelds.familiar/packages/ppp-dialin/ppp-dialin_0.1.bb @@ -3,7 +3,7 @@ DESCRIPTION = "Enables PPP dial-in through a serial connection" MAINTAINER = "Rene Wagner " DEPENDS = "ppp" RDEPENDS = "ppp" -PR = "r4" +PR = "r5" LICENSE = "MIT" SRC_URI = "file://host-peer \ @@ -22,7 +22,11 @@ pkg_postinst() { if test "x$D" != "x"; then exit 1 else - adduser --system --home /dev/null --no-create-home --empty-password --ingroup nogroup -s ${sbindir}/ppp-dialin ppp + if grep -q '^ppp:' /etc/passwd; then + echo "ppp: login exists" + else + adduser --system --home /dev/null --no-create-home --empty-password --ingroup nogroup -s ${sbindir}/ppp-dialin ppp + fi fi }