This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
linux:raspberry:raspbian:scripts:clock [2017/03/01 12:50] – external edit 127.0.0.1 | linux:raspberry:raspbian:scripts:clock [2019/12/12 10:00] (current) – lunetikk | ||
---|---|---|---|
Line 4: | Line 4: | ||
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 sh time.sh> | + | <nodisp> |
- | #!/bin/sh | + | {{gh> |
- | + | </nodisp> | |
- | #Lunetikk | + | |
- | + | ||
- | + | ||
- | read -p " | + | |
- | read -p " | + | |
- | + | ||
- | sudo date -s "$DATE $TIME" | + | |
- | sudo fake-hwclock | + | |
- | </code> | + | |
\\ | \\ | ||
\\ | \\ | ||
- | ~~DISCUSSION~~ | + | ~~DISCUSSION:closed~~ |