From acfea589f2113dca5be5b58905b43973a2dfab81 Mon Sep 17 00:00:00 2001 From: Patrick McGuire Date: Fri, 5 Nov 2021 11:33:53 -0400 Subject: [PATCH] manuall date and time tool for no-network installations --- scripts/set_date_and_time.sh | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 scripts/set_date_and_time.sh diff --git a/scripts/set_date_and_time.sh b/scripts/set_date_and_time.sh new file mode 100755 index 0000000..394e3df --- /dev/null +++ b/scripts/set_date_and_time.sh @@ -0,0 +1,5 @@ +#!/usr/bin/env -S sudo -E bash +# Setting date and time manually for non-network attached installatoins +most_recent="$(date +"%F %T" | tr '-' '/')" +new_time=$(whiptail --inputbox "Please set the correct time by changing these values. (24h clock format)" 20 60 "$most_recent" 3>&1 1>&2 2>&3) +date -s "$new_time"