From d3d72023dfa2b4fe31d0e5deef3ac26a1e1da5cd Mon Sep 17 00:00:00 2001 From: Rene Wagner Date: Sun, 21 May 2006 13:31:43 +0200 Subject: [PATCH] ppp-dialin: don't error out in postinst if ppp user already exists. Fixes Bug #1625. Signed-off-by: Rene Wagner --- .../packages/ppp-dialin/ppp-dialin_0.1.bb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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 } -- 2.41.1