piface / PiFace-Real-Time-Clock

Installation script for PiFace Real Time Clock.
MIT License
13 stars 13 forks source link

init script location (raspian) - fix included #14

Open kayleachampion opened 6 years ago

kayleachampion commented 6 years ago

Hi all,

Running the install­piface­real­time­clock.sh script only assigns run level S to the piefacertc, which makes raspian with systemd sad, so init scripts were failing to run on boot.

A fix:

cd /etc/rc2.d sudo ln -s ../init.d/pifacertc S01pifacertc cd ../rc5.d sudo ln -s ../init.d/pifacertc S01pifacertc

vladak commented 5 years ago

I just bought Piface RTC and also discovered that the script [1] linked from the documentation http://www.piface.org.uk/assets/piface_clock/PiFaceClockguide.pdf does not deliver functional service - HW clock does not work after reboot.

Really, these days proper solution is to create a systemd service as described in detail in this thread: https://www.raspberrypi.org/forums/viewtopic.php?p=1234070

[1] https://raw.githubusercontent.com/piface/PiFace-Real-Time-Clock/master/install-piface-real-time-clock.sh