mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
don't ask for network and source on booted system'
This commit is contained in:
parent
a89f85dfd8
commit
7b5248901b
2 changed files with 10 additions and 2 deletions
|
@ -133,8 +133,10 @@ _select_source() {
|
|||
if [[ -z ${_S_NET} ]]; then
|
||||
_check_network || return 1
|
||||
fi
|
||||
[[ "${_RUNNING_ARCH}" == "x86_64" ]] && _enable_testing
|
||||
_getsource || return 1
|
||||
if [[ -z ${_S_SRC} ]]; then
|
||||
[[ "${_RUNNING_ARCH}" == "x86_64" ]] && _enable_testing
|
||||
_getsource || return 1
|
||||
fi
|
||||
fi
|
||||
_NEXTITEM="3"
|
||||
}
|
||||
|
|
|
@ -5,6 +5,12 @@ _net_interfaces() {
|
|||
}
|
||||
|
||||
_check_network() {
|
||||
if ! grep -qw '^archboot' /etc/hostname; then
|
||||
if getent hosts www.google.com &>"${_LOG}"; then
|
||||
_S_NET=1
|
||||
_S_SRC=1
|
||||
fi
|
||||
fi
|
||||
[[ -z "${_S_NET}" ]] && _donetwork
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue