Set time on analyzer based on workstation's time

main
server 2022-01-20 21:48:00 -07:00
parent bfd1f0fa10
commit e69a1d1831
1 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,16 @@
#!/bin/bash
# Set date based on current system time.
# Perhaps you should make sure your local clock is correct. :)
# sudo ntpdate time.mit.edu
echo "Current time on analyzer"
adb shell busybox date
echo
NOW=`date -u "+%Y-%m-%d %H:%M:%S"`
echo "Setting time to "
adb shell busybox date -s \"$NOW\"
echo
echo "Current time on analyzer"
adb shell busybox date