diff options
-rwxr-xr-x | bootstrap-prepare.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/bootstrap-prepare.sh b/bootstrap-prepare.sh index 0a4fd98..21ec70c 100755 --- a/bootstrap-prepare.sh +++ b/bootstrap-prepare.sh @@ -38,6 +38,7 @@ main() prepare_packages_from_git prepare_packages_from_ftp patch_packages + prepare_file_system } log() @@ -127,4 +128,21 @@ patch_packages() cd .. } +prepare_file_system() +{ + local ma dir + + if ma=$(dpkg-architecture -qDEB_HOST_MULTIARCH 2>/dev/null); then + log 'Making multiarch directory links...' + for dir in /lib /usr/lib /usr/include; do + if [ ! -e "${dir}/${ARCH}" ]; then + printf '%s/%s -> %s\n' \ + "${dir}" "${ARCH}" "${ma}" + sudo ln -s "${ma}" "${dir}/${ARCH}" + fi + done + printf '\n' + fi +} + main "${@}" |