steamdeck-jupiter-driver/debian/postinst

14 lines
911 B
Plaintext
Raw Normal View History

2023-07-28 23:11:45 +02:00
#!/bin/bash
2023-04-27 18:12:29 +02:00
set -e
2023-07-28 23:11:45 +02:00
if [[ ":Jupiter:" =~ "$(cat /sys/devices/virtual/dmi/id/product_name)" ]]
then
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