Rules/filesystem/fs/etc/rc.d: add script to set rtc address.

This commit is contained in:
Pedro Gonçalves 2019-10-22 16:49:02 +01:00
parent 9bb6185aa2
commit 8c3711b965
1 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,11 @@
start()
{
echo "* Starting set of rtc..."
echo ds1307 0x68 > /sys/class/i2c-adapter/i2c-1/new_device
hwclock -s
}
stop()
{
echo "* Done..."
}