#!/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 nohup systemctl start fancontrol & else nohup systemctl stop fancontrol & fi if [ "${DEVICE_POWER_LED}" == "true" ] then nohup systemctl start battery & else nohup systemctl stop battery & fi if [ "${DEVICE_FAKE_JACKSENSE}" == "true" ] then nohup systemctl start headphones & else nohup systemctl stop headphones & fi if [ "${DEVICE_VOLUMECTL}" == "true" ] then nohup systemctl start volume & else nohup systemctl stop volume & fi