Fix on non jupiter devices
This commit is contained in:
parent
1d3d1e85a4
commit
70b2acce27
2
debian/changelog
vendored
2
debian/changelog
vendored
@ -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
15
debian/postinst
vendored
@ -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
8
debian/prerm
vendored
@ -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"
|
Loading…
Reference in New Issue
Block a user