2023-08-07 00:30:11 +00:00
|
|
|
#!/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)
|
|
|
|
|
2023-08-24 10:59:15 +00:00
|
|
|
. /etc/profile
|
2022-08-31 01:26:25 +00:00
|
|
|
|
|
|
|
if [ "${DEVICE_HAS_FAN}" == "true" ]
|
|
|
|
then
|
2023-04-22 20:01:07 +00:00
|
|
|
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
|
2023-04-22 20:01:07 +00:00
|
|
|
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
|
2023-04-22 20:01:07 +00:00
|
|
|
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
|