mirror of https://github.com/hak5/shark-files.git
ensure DNS works, per dark_pyrro suggestion
parent
5ec2535bc1
commit
b0c2e96ea2
|
@ -101,6 +101,11 @@ check_for_internet() {
|
|||
echo "You must have an internet connection to check for updates."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if ! ping -q -c 1 -W 1 google.com &>/dev/null 2>&1; then
|
||||
echo "You must have an internet connection with working DNS to check for updates."
|
||||
exit 0
|
||||
fi
|
||||
}
|
||||
|
||||
check_for_upgrade() {
|
||||
|
|
|
@ -7,6 +7,11 @@ check_for_internet() {
|
|||
echo "You must have an internet connection to sync the payload libraries."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if ! ping -q -c 1 -W 1 google.com &>/dev/null 2>&1; then
|
||||
echo "You must have an internet connection with working DNS to check for updates."
|
||||
exit 0
|
||||
fi
|
||||
}
|
||||
|
||||
cleanup_tmp() {
|
||||
|
|
Loading…
Reference in New Issue