From 53183c45056004ee9aad0a36f66ea414a3baf4be Mon Sep 17 00:00:00 2001 From: Leandro Carneiro Date: Mon, 30 Aug 2021 14:47:24 -0300 Subject: [PATCH] fix(sysupgrade): use curl instead ping - icmp not always available --- general/overlay/usr/sbin/sysupgrade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/general/overlay/usr/sbin/sysupgrade b/general/overlay/usr/sbin/sysupgrade index 2aa6e802..8063b122 100755 --- a/general/overlay/usr/sbin/sysupgrade +++ b/general/overlay/usr/sbin/sysupgrade @@ -47,7 +47,7 @@ quick_reboot() { -if ! ping -q -c 3 -w 3 github.com >/dev/null 2>&1; then +if [ "$(curl -o /dev/null -s -w '%{http_code}\n' http://github.com)" != "301" ]; then echo -e "\n\e[1;31mThere is no access to the github.com, please check the Internet connection...\e[0m\n" exit 1 else