diff options
Diffstat (limited to 'installers')
-rwxr-xr-x | installers/pc.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/installers/pc.sh b/installers/pc.sh index 39e1e94..5729743 100755 --- a/installers/pc.sh +++ b/installers/pc.sh @@ -60,8 +60,13 @@ main() "${0%installers/pc.sh}./miniprokit.sh" install \ -a "${host_arch}" -P "${host_plat}" \ ${mirror:+-m} ${mirror} "${mountpoint}" + mirror="$(printf '%s\n' "${mirror}" | \ + sed 's|^.*://||; s|^.*@||; s|/.*$||g;')" + printf '%s %s\n' "$(nslookup "${mirror}" | sed -n 's/Address: //p' | \ + head -n 1)" "${mirror}" >"${mountpoint}/etc/hosts" "${0%installers/pc.sh}./miniprokit.sh" shell "${mountpoint}" \ <"${0%pc.sh}data/pc.sh" + rm "${mountpoint}/etc/hosts" umount_fs "${mountpoint}" } |