Skip to content

Commit

Permalink
fix: unofficial images support
Browse files Browse the repository at this point in the history
  • Loading branch information
shawnchainw committed Mar 1, 2024
1 parent ffce7fe commit 4d62648
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rockpi-penta/DEBIAN/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -29,27 +29,27 @@ case "$model" in
mv /boot/dtbo/rk3588-i2c8-m2.dtbo.disabled /boot/dtbo/rk3588-i2c8-m2.dtbo || true
mv /boot/dtbo/rk3588-pwm14-m1.dtbo.disabled /boot/dtbo/rk3588-pwm14-m1.dtbo.dtbo || true
cp /usr/bin/rockpi-penta/env/rock_5a.env /etc/rockpi-penta.env
u-boot-update
u-boot-update || true
checkReboot
;;
*"ROCK3 Model C"*)
mv /boot/dtbo/rk3568-i2c3-m0.dtbo.disabled /boot/dtbo/rk3568-i2c3-m0.dtbo || true
cp /usr/bin/rockpi-penta/env/rock_3c.env /etc/rockpi-penta.env
u-boot-update
u-boot-update || true
checkReboot
;;
*"ROCK3 Model A"*)
mv /boot/dtbo/rk3568-i2c3-m0.dtbo.disabled /boot/dtbo/rk3568-i2c3-m0.dtbo || true
mv /boot/dtbo/rk3568-pwm15-m0.dtbo.disabled /boot/dtbo/rk3568-pwm15-m0.dtbo || true
cp /usr/bin/rockpi-penta/env/rock_pi_3.env /etc/rockpi-penta.env
u-boot-update
u-boot-update || true
checkReboot
;;
*"Radxa ROCK 4SE"* | *"ROCK Pi 4"*)
mv /boot/dtbo/rk3399-i2c7.dtbo.disabled /boot/dtbo/rk3399-i2c7.dtbo || true
mv /boot/dtbo/rk3399-pwm1.dtbo.disabled /boot/dtbo/rk3399-pwm1.dtbo || true
cp /usr/bin/rockpi-penta/env/rock_pi_4.env /etc/rockpi-penta.env
u-boot-update
u-boot-update || true
checkReboot
;;
*)
Expand Down

0 comments on commit 4d62648

Please sign in to comment.