Created
October 30, 2020 00:53
-
-
Save Unitech/990e697cdd154682c2f49a281d8854ef to your computer and use it in GitHub Desktop.
wittypi3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
my_dir="`dirname \"$0\"`" | |
my_dir="`( cd \"$my_dir\" && pwd )`" | |
if [ -z "$my_dir" ] ; then | |
exit 1 | |
fi | |
. $my_dir/utilities.sh | |
set_shutdown_time '??' '22' '38' | |
set_startup_time '??' '22' '39' '00' | |
# output RTC time | |
rtctime='>>> Your RTC time is: ' | |
rtctime+="$(get_rtc_time)" | |
echo "$rtctime" | |
systime='>>> Your system time is: ' | |
systime+="$(get_sys_time)" | |
echo "$systime" | |
shutdown_time=$(get_local_date_time "$(get_shutdown_time)") | |
echo $shutdown_time |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment