mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-24 22:58:43 +01:00
deactivate static dns if needed
This commit is contained in:
parent
2d7a01cc4e
commit
f353159185
1 changed files with 3 additions and 0 deletions
|
@ -63,6 +63,9 @@ fi
|
|||
|
||||
# setting DNS address
|
||||
echo "# Setting DNS server in /etc/dhcpcd.conf ..."
|
||||
# uncomment if needed
|
||||
sudo sed -i "s/^#static domain_name_servers=.*/static domain_name_servers=${DNSSERVER}/g" /etc/dhcpcd.conf
|
||||
# change value
|
||||
sudo sed -i "s/^static domain_name_servers=.*/static domain_name_servers=${DNSSERVER}/g" /etc/dhcpcd.conf
|
||||
echo "# OK"
|
||||
echo ""
|
||||
|
|
Loading…
Add table
Reference in a new issue