From 100db347338b520f722ad240cc99620e1377b6dc Mon Sep 17 00:00:00 2001 From: Locutus73 Date: Sat, 2 Mar 2019 19:01:54 +0100 Subject: [PATCH] Version 1.2 Changed "/media/fat/timezone" to "/media/fat/linux/timezone", removed -k option from curl. --- timezone.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/timezone.sh b/timezone.sh index 287615c..169a866 100644 --- a/timezone.sh +++ b/timezone.sh @@ -18,13 +18,14 @@ # You can download the latest version of this script from: # https://github.com/MiSTer-devel/Scripts_MiSTer +# Version 1.2 - 2019-03-02 - Changed "/media/fat/timezone" to "/media/fat/linux/timezone", removed -k option from curl. # Version 1.1 - 2019-01-08 - Changed "http://ip-api.com/json/" to "http://www.ip-api.com/json/". # Version 1.0 - 2019-01-08 - First commit. -TIMEZONE="$(curl -ksLf "http://www.ip-api.com/json/" | grep -o "\"timezone\" *: *\"[^\"]*" | grep -o "[^\"]*$")" +TIMEZONE="$(curl -sLf "http://www.ip-api.com/json/" | grep -o "\"timezone\" *: *\"[^\"]*" | grep -o "[^\"]*$")" if echo "$TIMEZONE" | grep -q "/" then - cp "/usr/share/zoneinfo/posix/$TIMEZONE" "/media/fat/timezone" + cp "/usr/share/zoneinfo/posix/$TIMEZONE" "/media/fat/linux/timezone" echo "Timezone set to" echo "$TIMEZONE." else