summaryrefslogtreecommitdiff
path: root/packages/ppp-dialin
diff options
context:
space:
mode:
Diffstat (limited to 'packages/ppp-dialin')
-rw-r--r--packages/ppp-dialin/ppp-dialin_0.1.bb6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/ppp-dialin/ppp-dialin_0.1.bb b/packages/ppp-dialin/ppp-dialin_0.1.bb
index 6861d8ad44..51a4a2b32d 100644
--- a/packages/ppp-dialin/ppp-dialin_0.1.bb
+++ b/packages/ppp-dialin/ppp-dialin_0.1.bb
@@ -2,7 +2,7 @@ SECTION = "console/network"
DESCRIPTION = "Enables PPP dial-in through a serial connection"
DEPENDS = "ppp"
RDEPENDS = "ppp"
-PR = "r5"
+PR = "r6"
LICENSE = "MIT"
SRC_URI = "file://host-peer \
@@ -22,7 +22,7 @@ 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
+ grep "^ppp:" /etc/passwd > /dev/null || adduser --system --home /dev/null --no-create-home --empty-password --ingroup nogroup -s ${sbindir}/ppp-dialin ppp
fi
}
@@ -30,6 +30,6 @@ pkg_postrm() {
if test "x$D" != "x"; then
exit 1
else
- deluser ppp
+ deluser ppp || true
fi
}