distribution/packages/sysutils/system-utils/sources/autostart/common/098-deviceutils

46 lines
964 B
Text
Raw Normal View History

#!/bin/sh
2022-08-31 01:26:25 +00:00
# SPDX-License-Identifier: Apache-2.0
# Copyright (C) 2021-present Fewtarius (https://github.com/fewtarius)
. /etc/profile
2022-08-31 01:26:25 +00:00
if [ "${DEVICE_HAS_FAN}" == "true" ]
then
tocon "Enabling fan control..."
2022-08-31 01:26:25 +00:00
nohup systemctl start fancontrol &
else
nohup systemctl stop fancontrol &
fi
if [ "${DEVICE_FAKE_JACKSENSE}" == "true" ]
then
tocon "Starting headphone service..."
2022-08-31 01:26:25 +00:00
nohup systemctl start headphones &
else
nohup systemctl stop headphones &
fi
2023-01-27 01:18:53 +00:00
if [ "${DEVICE_VOLUMECTL}" == "true" ]
then
tocon "Starting volume service..."
2023-01-27 01:18:53 +00:00
nohup systemctl start volume &
else
nohup systemctl stop volume &
fi
2023-07-08 14:03:58 +00:00
if [ "${DEVICE_HAS_HDMI}" == "true" ]
then
tocon "Starting hdmi service..."
2023-08-08 13:11:34 +00:00
nohup systemctl start video &
2023-07-08 14:03:58 +00:00
else
2023-08-08 13:11:34 +00:00
nohup systemctl stop video &
2023-07-08 14:03:58 +00:00
fi
2023-07-10 04:03:40 +00:00
if [ "${DEVICE_BATTERY_LED_STATUS}" == "true" ]
then
tocon "Starting battery led status service..."
nohup systemctl start batteryledstatus &
else
nohup systemctl stop batteryledstatus &
fi