1 parent 793c17f commit db67ef4Copy full SHA for db67ef4
1 file changed
setup/pi/setup-teslausb
@@ -421,7 +421,7 @@ function update_package_index () {
421
# the package index might be in a bad state if setup was previously
422
# interrupted, so fix it up first
423
dpkg --configure -a || true
424
- if [ "$(. /etc/os-release && echo "${VERSION_ID:-}")" = "10" ]
+ if [ "$(. /etc/os-release && echo "${VERSION_ID:-}")" = "10" ] && grep -q 'raspbian\.raspberrypi\.org' /etc/apt/sources.list
425
then
426
echo "Updating apt sources for legacy Buster (consider using a more recent image)"
427
sed -i 's|raspbian.raspberrypi.org|legacy.raspbian.org|g' /etc/apt/sources.list
0 commit comments