1f6d96325b
* Temporary drop or correct multiple packages that needed updates for x86_64. * Update volume service to deprecate hard coded paths. * system-utils and sleep to common packages. * Add weston kiosk.ini for future use. * Add DIRTY variable, if true it will not clean.
33 lines
629 B
Bash
Executable file
33 lines
629 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
|
|
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
|