distribution/packages/sysutils/system-utils/sources/autostart/common/008-deviceutils
fewtarius bff71cd5e2
* Add additional feedback to the boot process so it's visible to the user.
* Add support for a variant of JELOS suitable for hosting containers.
* Fix desktop mode terminal bug.
2023-04-22 20:01:07 +00:00

30 lines
621 B
Bash
Executable file

#!/bin/bash
# SPDX-License-Identifier: Apache-2.0
# Copyright (C) 2021-present Fewtarius (https://github.com/fewtarius)
. /etc/profile
if [ "${DEVICE_HAS_FAN}" == "true" ]
then
tocon "Enabling fan control..."
nohup systemctl start fancontrol &
else
nohup systemctl stop fancontrol &
fi
if [ "${DEVICE_FAKE_JACKSENSE}" == "true" ]
then
tocon "Starting headphone service..."
nohup systemctl start headphones &
else
nohup systemctl stop headphones &
fi
if [ "${DEVICE_VOLUMECTL}" == "true" ]
then
tocon "Starting volume service..."
nohup systemctl start volume &
else
nohup systemctl stop volume &
fi