1
0
This repository has been archived on 2024-11-10. You can view files and clone it, but cannot push or open issues or pull requests.
Lakka-rk322x/packages/sysutils/systemd/scripts/environment-setup
2019-12-18 00:49:13 +00:00

17 lines
352 B
Bash
Executable File

#!/bin/sh
# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2019-present Team LibreELEC (https://libreelec.tv)
# read config files
for config in /etc/profile.d/*; do
if [ -f "$config" ] ; then
. $config
fi
done
# generate system-wide environment file
cat <<EOF >/run/libreelec/environment
PATH=${PATH}
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}
EOF