Skip to content

Commit

Permalink
v6.26
Browse files Browse the repository at this point in the history
+ DietPi-Patch | OMV binary is present on our NanoPi NEO2 image as well. The reason is that those two files are not part of current OMV packages (e.g. binary got renamed), thus are not removed by purging them. As those are surely obsolete, remove them.
  • Loading branch information
MichaIng authored Jul 21, 2019
1 parent 0a63ba9 commit bd2f262
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions dietpi/patch_file
Original file line number Diff line number Diff line change
Expand Up @@ -2082,8 +2082,9 @@ A backup will be created to "/etc/mympd/mympd.conf.bak_DDMMYYY_N" from where you
elif (( $G_DIETPI_VERSION_SUB == 25 )); then

#-------------------------------------------------------------------------------
# Remove possible OpenMediaVault cron job, if related binary does not exist: https://github.com/MichaIng/DietPi/issues/2994
[[ -f '/etc/cron.d/openmediavault-rrdtoolgraph' && ! -f '/usr/sbin/omv-mkgraph' ]] || rm /etc/cron.d/openmediavault-rrdtoolgraph
# Remove possible OpenMediaVault leftovers, that are not part of current OMV packages, thus save to remove: https://github.com/MichaIng/DietPi/issues/2994
[[ -f '/etc/cron.d/openmediavault-rrdtoolgraph' ]] && rm /etc/cron.d/openmediavault-rrdtoolgraph
[[ -f '/usr/sbin/omv-mkgraph' ]] && rm /usr/sbin/omv-mkgraph
#-------------------------------------------------------------------------------
# RPi: Remove invalid I2C baudrate entries from dietpi.txt. Do no apply any value to preserve current system state (default): https://github.com/MichaIng/DietPi/issues/2966
(( $G_HW_MODEL < 10 )) && sed -i '/^[[:blank:]]*i2c_arm_baudrate=/d' /DietPi/dietpi.txt
Expand Down

0 comments on commit bd2f262

Please sign in to comment.