Skip to content

Commit

Permalink
fix: change file name
Browse files Browse the repository at this point in the history
  • Loading branch information
shawnchainw committed Mar 11, 2024
1 parent be608de commit 3d81278
Show file tree
Hide file tree
Showing 18 changed files with 10 additions and 15 deletions.
2 changes: 1 addition & 1 deletion rockpi-quad/DEBIAN/control
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ Maintainer: Radxa <[email protected]>
Depends: python3, python3-libgpiod, python3-pillow, python3-pip
Section: utils
Priority: optional
Homepage: https://github.com/radxa/rockpi-penta
Homepage: https://github.com/radxa/rockpi-quad
Description: Rockpi Quad Hat
10 changes: 5 additions & 5 deletions rockpi-quad/DEBIAN/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ else
pip3 install adafruit-circuitpython-ssd1306
fi

systemctl enable rockpi-penta.service
systemctl enable rockpi-quad.service

model=$(tr -d '\0' </proc/device-tree/model)

Expand All @@ -47,16 +47,16 @@ case "$model" in
if ! grep -q "dtoverlay=pwm,pin=13,func=4" /boot/config.txt; then
echo "dtoverlay=pwm,pin=13,func=4" >> /boot/config.txt
fi
mv /usr/bin/rockpi-penta/env/rpi4.env /etc/rockpi-penta.env
systemctl start rockpi-penta.service
mv /usr/bin/rockpi-quad/env/rpi4.env /etc/rockpi-quad.env
systemctl start rockpi-quad.service
;;
*"Radxa ROCK 4SE"* | *"ROCK Pi 4"*)
if [ "$(is_armbian)" = "true" ]; then
armbian_require_overlay rk3399-i2c7
cp /usr/bin/rockpi-penta/env/rock_pi_4_armbian.env /etc/rockpi-penta.env
cp /usr/bin/rockpi-quad/env/rock_pi_4_armbian.env /etc/rockpi-quad.env
else
mv /boot/dtbo/rk3399-i2c7.dtbo.disabled /boot/dtbo/rk3399-i2c7.dtbo || true
cp /usr/bin/rockpi-penta/env/rock_pi_4.env /etc/rockpi-penta.env
cp /usr/bin/rockpi-quad/env/rock_pi_4.env /etc/rockpi-quad.env
u-boot-update || true
fi
checkReboot
Expand Down
8 changes: 4 additions & 4 deletions rockpi-quad/DEBIAN/prerm
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#!/bin/sh -e

rm /etc/rockpi-penta.env > /dev/null || true
rm /etc/rockpi-quad.env > /dev/null || true

systemctl stop rockpi-penta.service
systemctl disable rockpi-penta.service
systemctl stop rockpi-quad.service
systemctl disable rockpi-quad.service

if [ -d /run/systemd/system ]; then
systemctl --system daemon-reload > /dev/null || true
fi

rm -rf /usr/bin/rockpi-penta/__pycache__
rm -rf /usr/bin/rockpi-quad/__pycache__
5 changes: 0 additions & 5 deletions rockpi-quad/DEBIAN/templates

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 3d81278

Please sign in to comment.