Skip to content

Commit

Permalink
v8.17
Browse files Browse the repository at this point in the history
- DietPi-Installer | Remove pre-v8.16 code
  • Loading branch information
MichaIng committed Apr 11, 2023
1 parent 8260a61 commit a280ce4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
12 changes: 2 additions & 10 deletions .build/images/dietpi-installer
Original file line number Diff line number Diff line change
Expand Up @@ -1741,13 +1741,7 @@ _EOF_'
elif [[ $G_HW_MODEL =~ ^76|78|79|80$ ]]
then
/boot/dietpi/func/dietpi-set_hardware serialconsole enable ttyFIQ0
# ToDo: pre-v8.16
G_EXEC mkdir -p '/etc/systemd/system/serial-getty@ttyFIQ0.service.d'
cat << _EOF_ > '/etc/systemd/system/serial-getty@ttyFIQ0.service.d/dietpi-baudrate.conf'
[Service]
ExecStart=
$(sed -n '/^ExecStart=/s/ 115200/ 1500000,115200/p' '/lib/systemd/system/serial-getty@.service')
_EOF_

# Else for physical systems (but Sparky SBC): Enable on all present serial consoles
elif (( $G_HW_MODEL != 20 && $G_HW_MODEL != 75 && $G_HW_MODEL != 70 ))
then
Expand Down Expand Up @@ -2043,9 +2037,7 @@ _EOF_

G_DIETPI-NOTIFY 2 'Configuring services'
/boot/dietpi/dietpi-services stop
# Pre-v8.16
# shellcheck disable=SC2015
[[ $G_GITBRANCH == 'master' ]] && /boot/dietpi/dietpi-services dietpi_controlled || /boot/dietpi/dietpi-services enable
/boot/dietpi/dietpi-services enable

G_DIETPI-NOTIFY 2 'Mask cron until 1st run setup is completed'
G_EXEC systemctl mask cron
Expand Down
2 changes: 1 addition & 1 deletion dietpi/dietpi-software
Original file line number Diff line number Diff line change
Expand Up @@ -8547,7 +8547,7 @@ _EOF_
# Install ruTorrent: Web UI for rTorrent
# - Grab current version
local version=$(curl -sSfL 'https://api.github.com/repos/Novik/ruTorrent/releases/latest' | mawk -F\" '/"tag_name": /{print $4}')
[[ $version ]] || { version='v4.0.3'; G_DIETPI-NOTIFY 1 "Automatic latest ruTorrent version detection failed. Version \"$version\" will be installed as fallback, but a newer version might be available. Please report this at: https://github.com/MichaIng/DietPi/issues"; }
[[ $version ]] || { version='v4.0.4'; G_DIETPI-NOTIFY 1 "Automatic latest ruTorrent version detection failed. Version \"$version\" will be installed as fallback, but a newer version might be available. Please report this at: https://github.com/MichaIng/DietPi/issues"; }
Download_Install "https://github.com/Novik/ruTorrent/archive/$version.tar.gz"

# - Reinstall freshly with preserved configs and 3rd party plugins
Expand Down

0 comments on commit a280ce4

Please sign in to comment.