mirror of
https://github.com/bin456789/reinstall.git
synced 2025-06-07 21:09:56 +00:00
parent
aaf6ad7c83
commit
afb958a60c
4
trans.sh
4
trans.sh
@ -761,9 +761,9 @@ get_current_dns() {
|
||||
# debian 11 initrd 没有 xargs awk
|
||||
# debian 12 initrd 没有 xargs
|
||||
if false; then
|
||||
grep '^nameserver' /etc/resolv.conf | awk '{print $2}' | grep -F "$mark"
|
||||
grep '^nameserver' /etc/resolv.conf | awk '{print $2}' | grep -F "$mark" | cut -d '%' -f1
|
||||
else
|
||||
grep '^nameserver' /etc/resolv.conf | cut -d' ' -f2 | grep -F "$mark"
|
||||
grep '^nameserver' /etc/resolv.conf | cut -d' ' -f2 | grep -F "$mark" | cut -d '%' -f1
|
||||
fi
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user