Files
Flash-CHIP/CHIP-updater/stretch-to-buster.sh
bicubico fefcc65857 extras
2023-02-21 12:40:50 -03:00

26 lines
767 B
Bash

#!/bin/bash
# Upgrade from stretch to buster
echo "."
echo "*** Updating and upgrading Debian Stretch to Buster. ***"
mv /etc/apt/sources.list /etc/apt/sources.list.bak
wget https://raw.githubusercontent.com/asophila/Flash-CHIP/master/CHIP-updater/buster_source_list.txt
mv buster_source_list.txt /etc/apt/sources.list
echo "."
echo "*** apt update & upgrade ***"
apt update
apt install linux-image-armmp -y --force-yes
apt full-upgrade -y --force-yes
sleep 5
# Define X11 variables for buster
sudo mv /etc/X11/xorg.conf /etc/X11/xorg.conf.bak
wget https://raw.githubusercontent.com/asophila/Flash-CHIP/master/CHIP-updater/buster_x11.txt
mv buster_x11.txt /etc/X11/xorg.conf
apt autoremove -y --force-yes
echo "."
echo "*** Update to Buster finished. Reboot***"