Internet connection test

This commit is contained in:
log :3 2022-10-12 11:15:59 +11:00
parent 72d6582779
commit 587ad62fe9
1 changed files with 10 additions and 0 deletions

View File

@ -1,2 +1,12 @@
#!/bin/bash #!/bin/bash
echo "Are you connected to the internet? [ y / n ]"
read INTERNETCONNECTION
if [ $INTERNETCONNECTION = n ]
then
echo "You must be connected to the internet to continue"
sleep 2
clear
exit
fi