@@ -762,9 +762,6 @@ echo "modifying /etc/apt/sources.list - allowing apt access to source code"
762762sed -i ' s/#deb-src/deb-src/' /etc/apt/sources.list
763763
764764
765-
766-
767-
768765if [ " $SKIP_APT_UPGRADE " = no ] || [[ -z " ${SKIP_APT_UPGRADE} " ]];
769766then
770767 echo
@@ -807,16 +804,13 @@ then
807804 echo " "
808805
809806
810- # rm -rf /opt/vc/lib
811-
812807 apt-get update -y
813808 DEBIAN_FRONTEND=noninteractive apt full-upgrade -y &
814809 wait
815810 apt --fix-broken install -y
816811 sed -i ' s|/usr/lib/dhcpcd5/dhcpcd|/usr/sbin/dhcpcd|g' /etc/systemd/system/dhcpcd.service.d/wait.conf # Fix potential issue with dhcpdp on Bullseye
817812 echo " "
818813
819-
820814 apt-get update -y
821815 DEBIAN_FRONTEND=noninteractive apt upgrade -y &
822816 wait
@@ -873,6 +867,11 @@ then
873867 echo " "
874868 fi
875869
870+
871+ if [ -d /opt/vc/lib ]; then
872+ echo " removing /opt/vc/lib"
873+ rm -rf /opt/vc/lib
874+ fi
876875
877876fi
878877
@@ -2183,6 +2182,8 @@ if [ -f /boot/fstab3.bak ] \
21832182 echo " /boot/fstab3.bak and /boot/fstab4.bak exist"
21842183else
21852184 echo " ERROR, /boot/fstab3.bak and /boot/fstab4.bak do not exist"
2185+ echo " WARNING, /boot/fstab3.bak and /boot/fstab4.bak do not exist" >> /dev/kmsg
2186+ echo " ERROR, /boot/fstab3.bak and /boot/fstab4.bak do not exist" >> /boot/candle_log.txt
21862187fi
21872188
21882189if [ -d /home/pi/.webthings/etc/wpa_supplicant ] \
@@ -2216,18 +2217,23 @@ then
22162217 echo " Candle: copying 3 partition version of fstab" >> /boot/candle_log.txt
22172218
22182219 if ! diff -q /home/pi/configuration-files/boot/fstab3.bak /etc/fstab & > /dev/null; then
2219- echo " fstab file is different, copying it"
2220+ echo " 3 partition fstab file is different, copying it"
2221+ echo " Candle: 3 partition fstab file is different, copying it" >> /dev/kmsg
22202222 cp --verbose /home/pi/configuration-files/boot/fstab3.bak /etc/fstab
22212223 else
22222224 echo " new fstab file is same as the old one, not copying it."
2225+ echo " Candle: new fstab file is same as the old one, not copying it." >> /dev/kmsg
2226+ echo " new 3 partition fstab file is same as the old one, not copying it." >> /boot/candle_log.txt
22232227 fi
2224-
22252228 fi
22262229
22272230
22282231else
22292232 echo
22302233 echo " ERROR, SOME VITAL FSTAB MOUNTPOINTS DO NOT EXIST!"
2234+ # The only reason this is a warning and not an error (which would stop the process in de UI), is that the process is nearly done anyway.
2235+ echo " Candle: WARNING, SOME VITAL MOUNTPOINTS DO NOT EXIST, NOT CHANGING FSTAB" >> /dev/kmsg
2236+ echo " Candle: ERROR, SOME VITAL MOUNTPOINTS DO NOT EXIST, NOT CHANGING FSTAB" >> /boot/candle_log.txt
22312237 echo
22322238
22332239 ls /home/pi/.webthings/etc/wpa_supplicant
@@ -2238,9 +2244,6 @@ else
22382244 ls /home/pi/.webthings/arduino/.arduino15
22392245 ls /home/pi/.webthings/arduino/Arduino
22402246
2241- # The only reason this is not an error (which would stop the process), is that the process is nearly done anyway.
2242- echo " Candle: WARNING, SOME VITAL MOUNTPOINTS DO NOT EXIST, NOT CHANGING FSTAB" >> /dev/kmsg
2243- echo " Candle: WARNING, SOME VITAL MOUNTPOINTS DO NOT EXIST, NOT CHANGING FSTAB" >> /boot/candle_log.txt
22442247 echo
22452248
22462249fi
0 commit comments