kopia lustrzana https://github.com/km4ack/pi-build
add real time clock
rodzic
c4ef044781
commit
8204d612f1
15
build-a-pi
15
build-a-pi
|
@ -137,6 +137,21 @@ MAIN
|
|||
|
||||
source $MYDIR/config
|
||||
|
||||
if [ $RTC = "yes" ] > /dev/null 2>&1
|
||||
then
|
||||
echo "##################################################"
|
||||
echo "##########INSTALLING REAL TIME CLOCK"
|
||||
echo "##################################################"
|
||||
sleep 2
|
||||
echo;echo;echo "Please be sure the real time clock is installed on the GPIO pins"
|
||||
read -n 1 -s -r -p "Press any key to continue once the RTC is installed"
|
||||
sudo sed -i 's/#dtparam=i2c_arm=on/dtparam=i2c_arm=on/' /boot/config.txt
|
||||
sleep 1
|
||||
cd $DIR
|
||||
wget https://raw.githubusercontent.com/km4ack/pi-scripts/master/rtc
|
||||
bash $DIR/rtc
|
||||
fi
|
||||
|
||||
if [ $HOTSPOT = "yes" ] > /dev/null 2>&1
|
||||
then
|
||||
echo;echo;echo
|
||||
|
|
Ładowanie…
Reference in New Issue