mirror of
https://github.com/mynodebtc/mynode.git
synced 2024-12-25 22:18:07 +00:00
Revert DNS Changes
This commit is contained in:
parent
d04fa72346
commit
a45e61e68b
|
@ -1,4 +1,4 @@
|
||||||
# Configuration for resolvconf(8)
|
# Configuration for resolvconf(8)
|
||||||
# See resolvconf.conf(5) for details
|
# See resolvconf.conf(5) for details
|
||||||
|
|
||||||
#resolvconf=NO
|
resolvconf=NO
|
||||||
|
|
|
@ -11,16 +11,22 @@ if [ ! -w / ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Make sure resolv.conf is a symlink to so resolvconf works
|
# Make sure resolv.conf is a symlink to so resolvconf works
|
||||||
if [ ! -h /etc/resolv.conf ]; then
|
# if [ ! -h /etc/resolv.conf ]; then
|
||||||
rm -f /etc/resolv.conf
|
# rm -f /etc/resolv.conf
|
||||||
touch /etc/resolvconf/run/resolv.conf
|
# touch /etc/resolvconf/run/resolv.conf
|
||||||
ln -s /etc/resolvconf/run/resolv.conf /etc/resolv.conf
|
# ln -s /etc/resolvconf/run/resolv.conf /etc/resolv.conf
|
||||||
|
|
||||||
sync
|
# sync
|
||||||
reboot
|
# reboot
|
||||||
sleep 10s
|
# sleep 10s
|
||||||
exit 1
|
# exit 1
|
||||||
fi
|
# fi
|
||||||
|
# Add some DNS servers to make domain lookup more likely
|
||||||
|
echo '' >> /etc/resolv.conf
|
||||||
|
echo '# Added at myNode startup' >> /etc/resolv.conf
|
||||||
|
echo 'nameserver 8.8.8.8' >> /etc/resolv.conf
|
||||||
|
echo 'nameserver 8.8.4.4' >> /etc/resolv.conf
|
||||||
|
echo 'nameserver 1.1.1.1' >> /etc/resolv.conf
|
||||||
|
|
||||||
# Disable autosuspend for USB drives
|
# Disable autosuspend for USB drives
|
||||||
for dev in /sys/bus/usb/devices/*/power/control; do echo "on" > $dev; done
|
for dev in /sys/bus/usb/devices/*/power/control; do echo "on" > $dev; done
|
||||||
|
@ -261,13 +267,6 @@ if [ $IS_RASPI -eq 1 ] || [ $IS_ROCKPRO64 -eq 1 ]; then
|
||||||
dphys-swapfile swapon
|
dphys-swapfile swapon
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Add some DNS servers to make domain lookup more likely
|
|
||||||
#echo '' >> /etc/resolv.conf
|
|
||||||
#echo '# Added at myNode startup' >> /etc/resolv.conf
|
|
||||||
#echo 'nameserver 8.8.8.8' >> /etc/resolv.conf
|
|
||||||
#echo 'nameserver 8.8.4.4' >> /etc/resolv.conf
|
|
||||||
#echo 'nameserver 1.1.1.1' >> /etc/resolv.conf
|
|
||||||
|
|
||||||
|
|
||||||
# Make sure every enabled service is really enabled
|
# Make sure every enabled service is really enabled
|
||||||
# This can happen from full-SD card upgrades
|
# This can happen from full-SD card upgrades
|
||||||
|
|
Loading…
Reference in New Issue
Block a user