bff71cd5e2
* Add support for a variant of JELOS suitable for hosting containers. * Fix desktop mode terminal bug.
30 lines
621 B
Bash
Executable file
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
|
|
|