Skip to content

Commit

Permalink
v9.7
Browse files Browse the repository at this point in the history
- DietPi-Patches | Fix logic
  • Loading branch information
MichaIng committed Aug 15, 2024
1 parent c63d5cf commit a2c3e93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .update/patches
Original file line number Diff line number Diff line change
Expand Up @@ -1780,7 +1780,7 @@ Patch_9_7()
fi

# NanoPi R5S/R6S migration from legacy image with 8 partitions to Armbian-based kernel and bootloader
elif [[ $G_HW_MODEL == 76 && $(dpkg-query -s 'firmware-nanopi5' &> /dev/null) ]]
elif [[ $G_HW_MODEL == 76 ]] && dpkg-query -s 'firmware-nanopi5' &> /dev/null
then
case $(</proc/device-tree/model) in
*R5S*) HW_VARIANT=1 /boot/dietpi/func/dietpi-set_software apt-mirror dietpi; local model='nanopi-r5s';;
Expand All @@ -1798,7 +1798,7 @@ Patch_9_7()
:
fi

elif [[ $G_HW_MODEL == 79 && $(dpkg-query -s 'firmware-nanopi6' &> /dev/null) ]]
elif [[ $G_HW_MODEL == 79 ]] && dpkg-query -s 'firmware-nanopi6' &> /dev/null
then
case $(</proc/device-tree/model) in
*R6S*) HW_VARIANT=1 /boot/dietpi/func/dietpi-set_software apt-mirror dietpi; local model='nanopi-r6s';;
Expand Down

0 comments on commit a2c3e93

Please sign in to comment.