[oe-commits] Koen Kooi : tinylogin: move u-a prio above busybox so 'su' works again, also remove links on removal

GIT User account git at amethyst.openembedded.net
Wed Dec 3 16:26:48 UTC 2008


Module: openembedded.git
Branch: org.openembedded.dev
Commit: b67b6a1938a059b615a1b5ac7062e855fb25e1d2
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=b67b6a1938a059b615a1b5ac7062e855fb25e1d2

Author: Koen Kooi <koen at openembedded.org>
Date:   Wed Dec  3 17:24:31 2008 +0100

tinylogin: move u-a prio above busybox so 'su' works again, also remove links on removal

---

 packages/tinylogin/tinylogin_1.4.bb |   18 ++++++++++++++++--
 1 files changed, 16 insertions(+), 2 deletions(-)

diff --git a/packages/tinylogin/tinylogin_1.4.bb b/packages/tinylogin/tinylogin_1.4.bb
index 43a7f10..3feb4d8 100644
--- a/packages/tinylogin/tinylogin_1.4.bb
+++ b/packages/tinylogin/tinylogin_1.4.bb
@@ -5,7 +5,7 @@ changing passwords, and otherwise maintaining users \
 and groups on an embedded system."
 HOMEPAGE = "http://tinylogin.tinylogin.net/"
 LICENSE = "GPL"
-PR = "r5"
+PR = "r6"
 
 SRC_URI = "http://tinylogin.tinylogin.net/downloads/tinylogin-${PV}.tar.bz2 \
 	file://cvs-20040608.patch;patch=1;pnum=1 \
@@ -33,6 +33,20 @@ pkg_postinst_${PN} () {
     if test "x$D" = "x"; then while read link; do if test ! -h "$link"; then case "$link" in /*/*/*) to="../../bin/tinylogin";; /bin/*) to="tinylogin";; /*/*) to="../bin/tinylogin";; esac; ln -s $to $link; fi; done </etc/tinylogin.links; fi
 
     # This adds the links, remember that this has to work when building an image too, hence the $D
-    while read link; do case "$link" in /*/*/*) to="../../bin/tinylogin";; /bin/*) to="tinylogin";; /*/*) to="../bin/tinylogin";; esac; bn=`basename $link`; update-alternatives --install $link $bn $to 40; done <$D/etc/tinylogin.links
+    while read link; do case "$link" in /*/*/*) to="../../bin/tinylogin";; /bin/*) to="tinylogin";; /*/*) to="../bin/tinylogin";; esac; bn=`basename $link`; update-alternatives --install $link $bn $to 60; done <$D/etc/tinylogin.links
+}
+
+
+pkg_prerm_${PN} () {
+    while read link
+    do  
+        case "$link" in
+            /*/*/*) to="../../bin/tinylogin";;
+            /bin/*) to="tinylogin";;
+            /*/*) to="../bin/tinylogin";;
+        esac
+        bn=`basename $link`
+        sh /usr/bin/update-alternatives --remove $bn $to
+    done < /etc/tinylogin.links
 }
 





More information about the Openembedded-commits mailing list