dns
This commit is contained in:
parent
263643ab20
commit
05636f94f3
1 changed files with 7 additions and 6 deletions
|
@ -856,15 +856,16 @@ spcd_query_package() {
|
||||||
|
|
||||||
spcd_step__dns() {
|
spcd_step__dns() {
|
||||||
spcd_step "DNS"
|
spcd_step "DNS"
|
||||||
|
local index value text
|
||||||
while true; do
|
while true; do
|
||||||
spcd_sdr__index=$((spcd_sdr__index + 1))
|
index=$((index + 1))
|
||||||
eval "spcd_sdr__value=\"\${SPCD_DNS_${spcd_sdr__index}}\""
|
eval "value=\"\${SPCD_DNS_${index}}\""
|
||||||
[ -n "${spcd_sdr__value}" ] || break
|
[ -n "${value}" ] || break
|
||||||
spcd_sdr__text="${spcd_sdr__text}\
|
text="${text}\
|
||||||
nameserver ${spcd_sdr__value}
|
nameserver ${value}
|
||||||
"
|
"
|
||||||
done
|
done
|
||||||
spcd_os_write "/etc/resolv.conf" "${spcd_sdr__text}"
|
spcd_os_write "/etc/resolv.conf" "${text}"
|
||||||
}
|
}
|
||||||
|
|
||||||
# ╭──────┬──────────╮
|
# ╭──────┬──────────╮
|
||||||
|
|
Loading…
Reference in a new issue