Lakka-LibreELEC/packages/wayland/util/foot/scripts/foot.sh
2022-02-03 11:09:40 +01:00

19 lines
472 B
Bash
Executable File

#!/bin/sh
# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2021-present Team LibreELEC (https://libreelec.tv)
FOOT_CONFIG_DIR=/storage/.config/foot
FOOT_CONFIG_DEFAULT=/usr/share/foot/foot.ini
FOOT_LOG_FILE=/var/log/foot.log
if [ ! -f ${FOOT_CONFIG_DIR}/foot.ini ]; then
mkdir -p ${FOOT_CONFIG_DIR}
cp ${FOOT_CONFIG_DEFAULT} ${FOOT_CONFIG_DIR}
fi
if [ -z "${LOCPATH}" ]; then
export LOCPATH="/storage/.cache/locpath"
fi
/usr/bin/foot > ${FOOT_LOG_FILE} 2>&1