This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| linux:raspberry:raspbian:scripts:clock [2018/12/20 17:40] – Discussion status changed lunetikk | linux:raspberry:raspbian:scripts:clock [2019/12/12 10:00] (current) – lunetikk | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| This script can be used to change the date and time if your Raspberry is not connected to a network or timeserver. | This script can be used to change the date and time if your Raspberry is not connected to a network or timeserver. | ||
| To do this, you need to enter the current date and time in the correct format. It will refresh after some seconds. | To do this, you need to enter the current date and time in the correct format. It will refresh after some seconds. | ||
| - | |||
| - | <code bash time.sh> | ||
| - | #!/bin/sh | ||
| - | |||
| - | #Lunetikk | 03.04.2014 | Change date and time | ||
| - | |||
| - | |||
| - | read -p " | ||
| - | read -p " | ||
| - | |||
| - | sudo date -s "$DATE $TIME" | ||
| - | sudo fake-hwclock | ||
| - | </ | ||
| < | < | ||