Skip to content

Commit b913e5a

Browse files
committed
dietpi-patches: skip RPi.GPIO => rpi-lgpio on Bullseye
The package exists since Bookworm in RPi repo.
1 parent 2e2c2a7 commit b913e5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.update/patches

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2165,7 +2165,7 @@ Patch_9_12()
21652165
fi
21662166

21672167
# RPi.GPIO => rpi-lgpio migration
2168-
if grep -q '^[[:blank:]]*aSOFTWARE_INSTALL_STATE\[69\]=2' /boot/dietpi/.installed
2168+
if (( $G_DISTRO > 6 )) && grep -q '^[[:blank:]]*aSOFTWARE_INSTALL_STATE\[69\]=2' /boot/dietpi/.installed
21692169
then
21702170
G_DIETPI-NOTIFY 2 'Migrating from legacy RPi.GPIO to modern compatible rpi-lgpio Python 3 library ...'
21712171
G_AGI python3-rpi-lgpio

0 commit comments

Comments
 (0)