diff options
author | Rene Wagner <rw@handhelds.org> | 2006-05-21 13:31:43 +0200 |
---|---|---|
committer | Rene Wagner <rw@handhelds.org> | 2006-05-21 13:31:43 +0200 |
commit | d3d72023dfa2b4fe31d0e5deef3ac26a1e1da5cd (patch) | |
tree | 5907031119b7cd3c1b6f5149cdb02da62cd35e05 | |
parent | 8459e9dabe3263d4dbd05c4c58b60b1a65e6c84d (diff) |
ppp-dialin: don't error out in postinst if ppp user already exists. Fixes Bug #1625.
Signed-off-by: Rene Wagner <rw@handhelds.org>
-rw-r--r-- | org.handhelds.familiar/packages/ppp-dialin/ppp-dialin_0.1.bb | 8 |
1 files 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 <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 } |