Set time on analyzer based on workstation's time
parent
bfd1f0fa10
commit
e69a1d1831
|
@ -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
|
||||
|
Loading…
Reference in New Issue