Patchwork [CONSOLIDATED,PULL,(v2),16/33] busybox: add grep to temporary links during uninstall

mail settings
Submitter Saul Wold
Date Nov. 10, 2011, 7:42 a.m.
Message ID <>
Download mbox | patch
Permalink /patch/14717/
State New
Headers show


Saul Wold - Nov. 10, 2011, 7:42 a.m.
From: Paul Eggleton <>

In the busybox package prerm we set up some temporary links and modify
PATH so that certain utilities are provided for the purpose of running
update-alternatives; if grep is not among these then you get errors when
removing busybox, so add a temporary link for grep as well.

Signed-off-by: Paul Eggleton <>

Resorted the link list.

Signed-off-by: Saul Wold <>
 meta/recipes-core/busybox/       |   11 ++++++-----
 meta/recipes-core/busybox/ |    2 +-
 2 files changed, 7 insertions(+), 6 deletions(-)


diff --git a/meta/recipes-core/busybox/ b/meta/recipes-core/busybox/
index acd635b..ff31bb7 100644
--- a/meta/recipes-core/busybox/
+++ b/meta/recipes-core/busybox/
@@ -259,17 +259,18 @@  pkg_prerm_${PN} () {
 	# for syslog, httpd and/or udhcpd will fail if there is no other package providing sh
 	tmpdir=`mktemp -d /tmp/busyboxrm-XXXXXX`
 	ln -s /bin/busybox $tmpdir/[
-	ln -s /bin/busybox $tmpdir/test
-	ln -s /bin/busybox $tmpdir/head
-	ln -s /bin/busybox $tmpdir/sh
 	ln -s /bin/busybox $tmpdir/basename
+	ln -s /bin/busybox $tmpdir/dirname
 	ln -s /bin/busybox $tmpdir/echo
-	ln -s /bin/busybox $tmpdir/mv
+	ln -s /bin/busybox $tmpdir/grep
+	ln -s /bin/busybox $tmpdir/head
 	ln -s /bin/busybox $tmpdir/ln
-	ln -s /bin/busybox $tmpdir/dirname
+	ln -s /bin/busybox $tmpdir/mv
 	ln -s /bin/busybox $tmpdir/rm
 	ln -s /bin/busybox $tmpdir/sed
+	ln -s /bin/busybox $tmpdir/sh
 	ln -s /bin/busybox $tmpdir/sort
+	ln -s /bin/busybox $tmpdir/test
 	export PATH=$PATH:$tmpdir
 	while read link
diff --git a/meta/recipes-core/busybox/ b/meta/recipes-core/busybox/
index bdafb31..17d583e 100644
--- a/meta/recipes-core/busybox/
+++ b/meta/recipes-core/busybox/
@@ -1,5 +1,5 @@ 
-PR = "r1"
+PR = "r2"
 SRC_URI = "${PV}.tar.bz2;name=tarball \
            file://udhcpscript.patch \