mirror of
https://github.com/PirateBox-Dev/PirateBoxScripts_Webserver.git
synced 2023-12-14 07:22:58 +01:00
8 lines
267 B
Bash
Executable file
8 lines
267 B
Bash
Executable file
#!/bin/bash
|
|
# This small shell script initializes the I2C bus on a Raspberry Pi
|
|
# and activates an installed real time clock module.
|
|
# Afterwards the system time is synced to the hardware clock.
|
|
|
|
echo ds1307 0x68 > /sys/class/i2c-adapter/i2c-1/new_device
|
|
hwclock -s
|