Skip to content

Commit

Permalink
v6.26
Browse files Browse the repository at this point in the history
+ DietPi-Pre-patch | On RPi, if Kodi is currently installed, pre-create /etc/polkit-1/localauthority/50-local.d to prevent Kodi upgrade failure: #3031 (comment)
  • Loading branch information
MichaIng authored Oct 14, 2019
1 parent 897b9cb commit 89670eb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions dietpi/pre-patch_file
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ _EOF_
# Pre-patch 13/14: https://github.com/MichaIng/DietPi/issues/3131#issuecomment-536997267
# Pre-patch 15: WireGuard: Enable auto-rebuild after kernel upgrades on RPi
# Pre-patch 16: https://github.com/MichaIng/DietPi/pull/2571
# Pre-patch 17: https://github.com/MichaIng/DietPi/issues/3031#issuecomment-540477241
if (( $G_DIETPI_VERSION_SUB < 26 )); then

echo -e '\e[90m[\e[0m INFO \e[90m]\e[0m Pre-patch 13 | Disabling dpkg status file translations by default, which have hardly any use, but raise APT update times + disk I/O '
Expand Down Expand Up @@ -195,6 +196,13 @@ Package: wireguard wireguard-dkms wireguard-tools\nPin: release n=bullseye\nPin-

fi

if (( $(mawk 'NR==1' /DietPi/dietpi/.hw_model || mawk 'NR==1' /boot/dietpi/.hw_model) < 10 )) && dpkg-query -s kodi &> /dev/null; then

echo -e '\e[90m[\e[0m INFO \e[90m]\e[0m Pre-patch 17 | Pre-create /etc/polkit-1/localauthority/50-local.d to prevent Kodi upgrade failure'
mkdir -p /etc/polkit-1/localauthority/50-local.d

fi

fi
#-------------------------------------------------------------------------------
# Finished
Expand Down

0 comments on commit 89670eb

Please sign in to comment.