This shows you the differences between two versions of the page.
Next revision | Previous revisionLast revisionBoth sides next revision | ||
linux:raspberry:raspbian:scripts:clock [2014/11/18 09:43] – created lunetikk | linux:raspberry:raspbian:scripts:clock [2018/12/20 17:40] – Discussion status changed lunetikk | ||
---|---|---|---|
Line 1: | Line 1: | ||
===== Date and Time Script ===== | ===== Date and Time Script ===== | ||
- | This script can be used 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. | ||
- | < | + | < |
#!/bin/sh | #!/bin/sh | ||
Line 16: | Line 16: | ||
sudo fake-hwclock | sudo fake-hwclock | ||
</ | </ | ||
+ | |||
+ | < | ||
+ | {{gh> | ||
+ | </ | ||
+ | |||
+ | \\ | ||
+ | \\ | ||
+ | ~~DISCUSSION: |