I have seen this error since I started using piBeacon. And I have search high and low for an answer and can't seem to figure out why I keep getting this. Has anyone else seen this message?
Thanks
Joel
if (findString("dtoverlay=i2c-rtc,ds1307", "/boot/config.txt") !=2 and
findString("dtoverlay=i2c-rtc,ds3231", "/boot/config.txt") !=2 ) :
G.useRTC = useRTCnew
return
removefromFile("dtoverlay=i2c-rtc,ds3231", "/boot/config.txt")
removefromFile("dtoverlay=i2c-rtc,ds1307", "/boot/config.txt")
removefromFile("/sbin/hwclock -s", "/etc/rc.local" )
# in /lib/udev/hwclock-set REMOVE # infront of
#if [ -e /run/systemd/system ] ; then
# exit 0
#fi
uncommentOrAdd("if [ -e /run/systemd/system ]", "/lib/udev/hwclock-set", before="",nLines =3)
os.system("sudo chmod a+x /lib/udev/hwclock-set")
os.system("apt-get install fake-hwclock")
#!/bin/sh
# Reset the System Clock to UTC if the hardware clock from which it
# was copied by the kernel was in localtime.
dev=$1
if [ -e /run/systemd/system ] ; then
exit 0
fi
if [ -e /run/udev/hwclock-set ]; then
exit 0
fi
if [ -f /etc/default/rcS ] ; then
. /etc/default/rcS
fi
# These defaults are user-overridable in /etc/default/hwclock
BADYEAR=no
HWCLOCKACCESS=yes
HWCLOCKPARS=
HCTOSYS_DEVICE=rtc0
if [ -f /etc/default/hwclock ] ; then
. /etc/default/hwclock
fi
if [ yes = "$BADYEAR" ] ; then
/sbin/hwclock --rtc=$dev --systz --badyear
/sbin/hwclock --rtc=$dev --hctosys --badyear
else
/sbin/hwclock --rtc=$dev --systz
/sbin/hwclock --rtc=$dev --hctosys
fi
# Note 'touch' may not be available in initramfs
> /run/udev/hwclock-set
sudo chmod a+x /lib/udev/hwclock-set
sudo apt-get install fake-hwclock
sudo apt-get install fake-hwclock
Reading package lists... Done
Building dependency tree
Reading state information... Done
fake-hwclock is already the newest version (0.11).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Users browsing this forum: No registered users and 11 guests