Skip to content

Commit

Permalink
v8.4
Browse files Browse the repository at this point in the history
- DietPi-Pre-patches | Backport of: ed9b4c0
  • Loading branch information
MichaIng committed May 2, 2022
1 parent a11300a commit 5a7be62
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .update/pre-patches
Original file line number Diff line number Diff line change
Expand Up @@ -174,5 +174,12 @@ then
G_EXEC sed -i 's/rk3328-nanopi-neo3-rev02.dtb/rk3328-nanopi-r2-rev00.dtb/' /boot/armbianEnv.txt
fi

# v8.4/v8.5: https://github.com/MichaIng/DietPi/issues/5467
if (( $G_DIETPI_VERSION_CORE < 8 || ( $G_DIETPI_VERSION_CORE == 8 && $G_DIETPI_VERSION_SUB < 5 ) )) && (( $G_DISTRO > 5 )) && dpkg-query -s systemd-timesyncd &> /dev/null && [[ $(apt-mark showauto systemd-timesyncd) ]]
then
G_DIETPI-NOTIFY 2 'Marking systemd-timesyncd as manually installed to prevent its autoremoval'
G_EXEC apt-mark manual systemd-timesyncd
fi

exit 0
}

0 comments on commit 5a7be62

Please sign in to comment.