mirror of
https://github.com/SinTan1729/random.git
synced 2024-12-25 20:58:37 -06:00
chg: Added a message explaining the need for sudo
This commit is contained in:
parent
897464d8d1
commit
9437266fb2
1 changed files with 1 additions and 0 deletions
|
@ -7,6 +7,7 @@
|
|||
DNS=$(nmcli -f IP4.DNS dev show wlan0 | awk '{print $2}')
|
||||
|
||||
# Temporarily put the DNS resolver in place
|
||||
echo "Need sudo permission to work with /etc/resolv.conf"
|
||||
sudo cp /etc/resolv.conf /etc/resolv.conf.bk
|
||||
echo "# Temporary resolv.conf generated by captive-portal-login.sh" | sudo tee /etc/resolv.conf
|
||||
echo "nameserver $DNS" | sudo tee -a /etc/resolv.conf
|
||||
|
|
Loading…
Reference in a new issue