testan a reboold

This commit is contained in:
2025-10-14 07:48:48 -06:00
parent 38e87ea45a
commit 402e0cb969
+19
View File
@@ -291,9 +291,15 @@ sudo systemctl enable logrotate
# echo "Editing hwclock-set file" # echo "Editing hwclock-set file"
# sudo nano /lib/udev/hwclock-set # sudo nano /lib/udev/hwclock-set
# update the running file
echo 5 > $installer_status
# update the log # update the log
echo "installer4.sh done 5/5\nCOMPLETE AT $(date +%s)" >> $status_log echo "installer4.sh done 5/5\nCOMPLETE AT $(date +%s)" >> $status_log
# delete tmp file
rm -f $status_log
# finish # finish
echo -e "\nPart 5/5 Done! Yaay! Done!\n" echo -e "\nPart 5/5 Done! Yaay! Done!\n"
@@ -301,3 +307,16 @@ echo -e "\nPart 5/5 Done! Yaay! Done!\n"
echo -e "\nREBOOTING IN $long_delay MINUTES\n" echo -e "\nREBOOTING IN $long_delay MINUTES\n"
sudo shutdown -r +$long_delay sudo shutdown -r +$long_delay
} }
if [ -f $status_log ]; then
if [[ $(cat $installer_status) =~ "*1*" ]]; then
phase_two
elif [[ $(cat $installer_status) =~ "*2*" ]]; then
phase_three
elif [[ $(cat $installer_status) =~ "*3*" ]]; then
phase_four
elif [[ $(cat $installer_status) =~ "*4*" ]]; then
phase_five
else
phase_one
fi