mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-10-09 12:23:11 +02:00
#787 removing need to reboot
This commit is contained in:
@@ -13,9 +13,6 @@ DNSSERVER="$1"
|
|||||||
# 2. parameter
|
# 2. parameter
|
||||||
NODIALOG="$2"
|
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)
|
# run test if DNS is working (assuming that internet is working)
|
||||||
if [ "${DNSSERVER}" = "test" ]; then
|
if [ "${DNSSERVER}" = "test" ]; then
|
||||||
|
|
||||||
@@ -29,12 +26,11 @@ if [ "${DNSSERVER}" = "test" ]; then
|
|||||||
|
|
||||||
# dns is not working --> ask in dialog to set a preset DNS
|
# 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
|
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
|
" 10 64
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
echo "# SETTING 1.1.1.1"
|
echo "# SETTING 1.1.1.1"
|
||||||
DNSSERVER="1.1.1.1"
|
DNSSERVER="1.1.1.1"
|
||||||
autoreboot=1
|
|
||||||
else
|
else
|
||||||
echo "# Ignoring DNS-Test fail"
|
echo "# Ignoring DNS-Test fail"
|
||||||
fi
|
fi
|
||||||
@@ -72,7 +68,5 @@ fi
|
|||||||
echo "# OK"
|
echo "# OK"
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
echo "# DNS Server is set - reboot needed before active"
|
echo "# DNS Server is set - making daemon-reload to activate network settings"
|
||||||
if [ ${autoreboot} -eq 1 ]; then
|
systemctl daemon-reload
|
||||||
sudo shutdown -r now
|
|
||||||
fi
|
|
Reference in New Issue
Block a user