FILE="/install_tmp/arch"
CONTENTS="`<"$FILE"`"
if [ "$CONTENTS" = "amd64" ]; then
rm /install_tmp/arch_c
fi
cd /install_tmp
echo "Now stage3-archive download will begin. This archive contains Gentoo without any additional programs"
wget $(cat /install_tmp/mirror)releases/$(cat /install_tmp/arch)/current-stage3/stage3-$(cat /install_tmp/arch_c)*.tar.bz2
echo "Now portage-snapshot download will begin. This archive contains snapshot of Portage Tree(if you don't know what it is, rtfm"
wget $(cat /install_tmp/mirror)snapshots/portage-latest.tar.bz2
echo "Downloading archives is finished"
cd $(dirname 'readlink -e "$0"')
sh mount.sh
Предпоследняя строка почему-то не переходит обратно в папку, в который лежит скрипт. Что может быть не так?