Skip to content

Commit 8f8118f

Browse files
committed
setup - allow updating of OS packages on non Raspberry Pi OS systems
1 parent d311646 commit 8f8118f

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

scriptmodules/admin/setup.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,14 @@ function update_packages_gui_setup() {
551551
rps_logInit
552552
{
553553
rps_logStart
554-
[[ "$update_os" -eq 1 ]] && rp_callModule raspbiantools apt_upgrade
554+
if [[ "$update_os" -eq 1 ]]; then
555+
if rp_isEnabled "raspbiantools"; then
556+
rp_callModule raspbiantools apt_upgrade
557+
else
558+
aptUpdate
559+
apt-get -y dist-upgrade
560+
fi
561+
fi
555562
update_packages_setup
556563
rps_logEnd
557564
} &> >(_setup_gzip_log "$logfilename")

0 commit comments

Comments
 (0)