Rules/filesystem/fs/etc/rc.d: add script to set rtc address.
This commit is contained in:
parent
9bb6185aa2
commit
8c3711b965
11
rules/filesystem/fs/etc/rc.d/set-rtc
Normal file
11
rules/filesystem/fs/etc/rc.d/set-rtc
Normal 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..."
|
||||
}
|
Reference in New Issue
Block a user