summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2008-10-24 11:51:49 +0200
committerKoen Kooi <koen@openembedded.org>2008-10-24 11:51:49 +0200
commit54146066ad0d2dab7e0976bad1a16b7f95af104b (patch)
tree5c0f7a2ff8f24e237e8fde3e2fceb9cbab3c24d4 /packages
parentfa0d83dad9ef25f4e5e45ba6371401e686979141 (diff)
pp-dialin: try to make it upgrade safe
Diffstat (limited to 'packages')
-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
}