mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-10-03 18:09:03 +02:00
#787 removing need to reboot
This commit is contained in:
@@ -13,9 +13,6 @@ DNSSERVER="$1"
|
||||
# 2. parameter
|
||||
NODIALOG="$2"
|
||||
|
||||
# just in case a reboot is needed after test dialog
|
||||
autoreboot=0
|
||||
|
||||
# run test if DNS is working (assuming that internet is working)
|
||||
if [ "${DNSSERVER}" = "test" ]; then
|
||||
|
||||
@@ -29,12 +26,11 @@ if [ "${DNSSERVER}" = "test" ]; then
|
||||
|
||||
# dns is not working --> ask in dialog to set a preset DNS
|
||||
whiptail --title ' DNS Test Failed ' --yes-button='Set DNS 1.1.1.1' --no-button='Ignore' --yesno "It looks like your DNS within local network is not working.\n
|
||||
Do you want to set the fixed DNS 1.1.1.1 by cloudfare (they claim they provide privacy) for your RaspiBlitz and reboot?\n
|
||||
Do you want to set the fixed DNS 1.1.1.1 by cloudfare (they claim they provide privacy) for your RaspiBlitz?\n
|
||||
" 10 64
|
||||
if [ $? -eq 0 ]; then
|
||||
echo "# SETTING 1.1.1.1"
|
||||
DNSSERVER="1.1.1.1"
|
||||
autoreboot=1
|
||||
else
|
||||
echo "# Ignoring DNS-Test fail"
|
||||
fi
|
||||
@@ -72,7 +68,5 @@ fi
|
||||
echo "# OK"
|
||||
echo ""
|
||||
|
||||
echo "# DNS Server is set - reboot needed before active"
|
||||
if [ ${autoreboot} -eq 1 ]; then
|
||||
sudo shutdown -r now
|
||||
fi
|
||||
echo "# DNS Server is set - making daemon-reload to activate network settings"
|
||||
systemctl daemon-reload
|
Reference in New Issue
Block a user