summaryrefslogtreecommitdiffstats
path: root/scripts/scrubtree
diff options
context:
space:
mode:
authorMike Fulbright <msf@redhat.com>2003-01-06 22:28:05 +0000
committerMike Fulbright <msf@redhat.com>2003-01-06 22:28:05 +0000
commitb405de3b4eee22ca02f24ad9bd5314fa5460f9da (patch)
tree7c2e60717f418b018fd73227b12221c40b9cdd3d /scripts/scrubtree
parent505dbecc310fc1608d6419923529689365441045 (diff)
downloadanaconda-b405de3b4eee22ca02f24ad9bd5314fa5460f9da.tar.gz
anaconda-b405de3b4eee22ca02f24ad9bd5314fa5460f9da.tar.xz
anaconda-b405de3b4eee22ca02f24ad9bd5314fa5460f9da.zip
dont clobber existing utlities with busybox version
Diffstat (limited to 'scripts/scrubtree')
-rwxr-xr-xscripts/scrubtree10
1 files changed, 9 insertions, 1 deletions
diff --git a/scripts/scrubtree b/scripts/scrubtree
index 6280a47fe..5024a10fd 100755
--- a/scripts/scrubtree
+++ b/scripts/scrubtree
@@ -27,12 +27,20 @@ if [ $ARCH != s390 -a $ARCH != s390x ]; then
fi
rm $p/etc/ld.so.conf
+#
+# make sure we have links for programs supplied by busybox
+#
+# HOWEVER dont clobber existing programs supplied by other packages if exist
+#
mv $p/usr/sbin/busybox.anaconda $p/usr/bin/busybox
(cd $p/usr/bin;
set $(./busybox 2>&1| awk '/^\t([a-z\[]+,)+/' | sed 's/,//g' | sed 's/ +//');
while [ -n "$1" ]; do
if [ $1 != "busybox" -a $1 != "sh" ]; then
- ln -sf ./busybox $1
+ # if file doesnt already exist, link to busybox
+ if [ ! -f "$1" ]; then
+ ln -sf ./busybox $1
+ fi
fi
shift
done