Fix on non jupiter devices

This commit is contained in:
Ward Nakchbandi (Cosmic Fusion) 2023-07-29 00:11:45 +03:00 committed by GitHub
parent 1d3d1e85a4
commit 70b2acce27
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 19 additions and 6 deletions

2
debian/changelog vendored
View File

@ -1,4 +1,4 @@
steamdeck-jupiter-driver (20221213.1-99pika7-lunar) lunar; urgency=low steamdeck-jupiter-driver (20221213.1-99pika8-lunar) lunar; urgency=low
* Initial Creation * Initial Creation

15
debian/postinst vendored
View File

@ -1,7 +1,14 @@
#!/bin/sh #!/bin/bash
set -e set -e
systemctl enable --now jupiter-biosupdate.service || echo "jupiter-biosupdate service could not be enabled" if [[ ":Jupiter:" =~ "$(cat /sys/devices/virtual/dmi/id/product_name)" ]]
systemctl enable --now jupiter-controller-update.service || echo "jupiter-controller-update service could not be enabled" then
systemctl enable --now jupiter-fan-control.service || echo "jupiter-fan-control service could not be enabled" systemctl enable --now jupiter-biosupdate.service || echo "jupiter-biosupdate service could not be enabled"
systemctl enable --now jupiter-controller-update.service || echo "jupiter-controller-update service could not be enabled"
systemctl enable --now jupiter-fan-control.service || echo "jupiter-fan-control service could not be enabled"
systemctl --global enable --now sdgyrodsu.service || echo "sdgyrodsu service could not be enabled"
systemctl enable --now sdgyrodsu.service || echo "sdgyrodsu service could not be enabled"
systemctl --global enable --now jupiter-controller-update.service || echo "jupiter-controller-updatel service could not be enabled"
systemctl --global enable --now jupiter-fan-control.service || echo "jupiter-fan-control service could not be enabled"
fi

8
debian/prerm vendored
View File

@ -1,7 +1,13 @@
#!/bin/sh #!/bin/bash
set -e set -e
systemctl disable --now jupiter-biosupdate.service || echo "jupiter-biosupdate service could not be disabled" systemctl disable --now jupiter-biosupdate.service || echo "jupiter-biosupdate service could not be disabled"
systemctl disable --now jupiter-controller-update.service || echo "jupiter-controller-update service could not be disabled" systemctl disable --now jupiter-controller-update.service || echo "jupiter-controller-update service could not be disabled"
systemctl disable --now jupiter-fan-control.service || echo "jupiter-fan-control service could not be disabled" systemctl disable --now jupiter-fan-control.service || echo "jupiter-fan-control service could not be disabled"
systemctl --global disable --now sdgyrodsu.service || echo "sdgyrodsu service could not be disabled"
systemctl disable --now sdgyrodsu.service || echo "sdgyrodsu service could not be disabled"
systemctl --global disable --now jupiter-controller-update.service || echo "jupiter-controller-updatel service could not be disabled"
systemctl --global disable --now jupiter-fan-control.service || echo "jupiter-fan-control service could not be disabled"
rm /usr/lib/systemd/system/jupiter-controller-update.service || echo "jupiter-controller-update service could not be disabled"
rm /usr/lib/systemd/system/jupiter-fan-control.service || echo "jupiter-fan-control service could not be disabled"