no need to test connection once again if it's already connected

This commit is contained in:
Daniel Hansson 2017-02-07 13:52:16 +01:00 committed by GitHub
parent 9679ed4d74
commit 4f5ce798b6

View File

@ -494,16 +494,16 @@ then
read -p "Press any key to open /etc/network/interfaces..." -n1 -s
echo -e "\e[0m"
nano /etc/network/interfaces
service networking restart
clear
echo "Testing if network is OK..."
ifdown $IFACE
sleep 1
ifup $IFACE
sleep 1
bash $SCRIPTS/test_connection.sh
sleep 1
fi
service networking restart
clear
echo "Testing if network is OK..."
ifdown $IFACE
sleep 1
ifup $IFACE
sleep 1
bash $SCRIPTS/test_connection.sh
sleep 1
else
echo "OK, then we will not set a static IP as your VPS provider already have setup the network for you..."
sleep 5