Site Tools


linux:raspberry:raspbian:scripts:clock

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
linux:raspberry:raspbian:scripts:clock [2017/11/29 16:59] lunetikklinux: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 bash time.sh+<nodisp
-#!/bin/sh +{{gh>https://github.com/Lunetikk/linuxscripts/blob/master/raspberrytime.sh}} 
- +</nodisp>
-#Lunetikk | 03.04.2014 | Change date and time +
- +
- +
-read -p "Insert date like YYYY-MM-DD:" DATE +
-read -p "Insert time like HH:MM:SS:" TIME +
- +
-sudo date -s "$DATE $TIME"  +
-sudo fake-hwclock +
-</code>+
  
 \\ \\
 \\ \\
-~~DISCUSSION~~+~~DISCUSSION:closed~~
linux/raspberry/raspbian/scripts/clock.1511971159.txt.gz · Last modified: 2017/11/29 16:59 (external edit)