summaryrefslogtreecommitdiffstats
path: root/bootstrap-prepare.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bootstrap-prepare.sh')
-rwxr-xr-xbootstrap-prepare.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/bootstrap-prepare.sh b/bootstrap-prepare.sh
index dabab0a..6bb3069 100755
--- a/bootstrap-prepare.sh
+++ b/bootstrap-prepare.sh
@@ -212,7 +212,7 @@ get_pkg()
prepare_file_system()
{
- local ma dir
+ local ma dir bb_ver
if ma=$(dpkg-architecture -qDEB_HOST_MULTIARCH 2>/dev/null); then
log 'Making multiarch directory links...'
@@ -238,7 +238,9 @@ prepare_file_system()
>pkg/gcc-4.7/local.mk
fi
- sudo cp -p "pkg/config-${PLAT}/src/busybox/config" \
+ bb_ver="$(sed 's/^busybox (\(.*\)-.*) .*$/\1/; q;' \
+ pkg/busybox/changelog)"
+ sudo cp -p "pkg/config-${PLAT}/src/busybox/${bb_ver}/busybox.config" \
"/usr/local/share/platconf/${PLAT}/busybox/busybox.config"
}