]> pilppa.com Git - familiar-h63xx-build.git/commitdiff
ppp-dialin: don't error out in postinst if ppp user already exists. Fixes Bug #1625.
authorRene Wagner <rw@handhelds.org>
Sun, 21 May 2006 11:31:43 +0000 (13:31 +0200)
committerRene Wagner <rw@handhelds.org>
Sun, 21 May 2006 11:31:43 +0000 (13:31 +0200)
Signed-off-by: Rene Wagner <rw@handhelds.org>
org.handhelds.familiar/packages/ppp-dialin/ppp-dialin_0.1.bb

index 815ed14d3bd9e035eee95d05d8dbfeae6fea1d1f..0d0426790f900bb250f330ef0be2164695a151cc 100644 (file)
@@ -3,7 +3,7 @@ DESCRIPTION = "Enables PPP dial-in through a serial connection"
 MAINTAINER = "Rene Wagner <rw@handhelds.org>"
 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
 }