steamdeck-jupiter-driver/debian/postinst
Ward Nakchbandi (Cosmic Fusion) 70b2acce27
Fix on non jupiter devices
2023-07-29 00:11:45 +03:00

14 lines
911 B
Bash
Executable File

#!/bin/bash
set -e
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