scripts dutchification - batch 1

This commit is contained in:
bergware
2023-10-02 12:45:10 +02:00
parent 92c62e6e60
commit 659a5d1790

View File

@@ -25,8 +25,8 @@ mask(){
}
dns() {
[[ $1 == 4 ]] && addr='(\d{1,3}\.){3}\d+' || addr='([0-9a-fA-F]{1,4}::?){1,7}[0-9a-fA-F]*'
grep -Po "^nameserver \K$addr" /etc/resolv.conf
[[ $1 == 4 ]] && ADDR='(\d{1,3}\.){3}\d+' || ADDR='([0-9a-fA-F]{1,4}::?){1,7}[0-9a-fA-F]*'
grep -Po "^nameserver \K$ADDR" /etc/resolv.conf
}
if [[ -s $CFG ]]; then