diff --git a/firmware-util.sh b/firmware-util.sh index eb7047d..0069ed5 100644 --- a/firmware-util.sh +++ b/firmware-util.sh @@ -26,8 +26,8 @@ else cd /tmp fi -#check for cmd line param -if [[ "$1" = "-k" ]]; then +#check for cmd line param, expired CrOS certs +if ! curl -sLo /dev/null https://mrchromebox.tech/index.html || [[ "$1" = "-k" ]]; then export CURL="curl -k" else export CURL="curl" diff --git a/setup-kodi.sh b/setup-kodi.sh index 5f06fc2..e37ab3b 100644 --- a/setup-kodi.sh +++ b/setup-kodi.sh @@ -22,8 +22,8 @@ else cd /tmp fi -#check for cmd line param -if [[ "$1" = "-k" ]]; then +#check for cmd line param, expired CrOS certs +if ! curl -sLo /dev/null https://mrchromebox.tech/index.html || [[ "$1" = "-k" ]]; then export CURL="curl -k" else export CURL="curl" diff --git a/uefi-flash.sh b/uefi-flash.sh index da24472..5578a5a 100644 --- a/uefi-flash.sh +++ b/uefi-flash.sh @@ -26,8 +26,8 @@ else cd /tmp fi -#check for cmd line param -if [[ "$1" = "-k" ]]; then +#check for cmd line param, expired CrOS certs +if ! curl -sLo /dev/null https://mrchromebox.tech/index.html || [[ "$1" = "-k" ]]; then export CURL="curl -k" else export CURL="curl"