2022-02-05 14:23:32 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
# Copyright (C) 2009-2014 Stephan Raue (stephan@openelec.tv)
|
2023-01-23 22:41:38 +00:00
|
|
|
# Copyright (C) 2021-present Fewtarius
|
2022-02-05 14:23:32 +00:00
|
|
|
|
2023-01-23 22:41:38 +00:00
|
|
|
# Read config files
|
|
|
|
for CONFIG in /etc/profile.d/*; do
|
|
|
|
if [ -f "${CONFIG}" ] ; then
|
|
|
|
. ${CONFIG}
|
2022-02-05 14:23:32 +00:00
|
|
|
fi
|
2023-01-23 22:41:38 +00:00
|
|
|
done
|
2022-02-05 14:23:32 +00:00
|
|
|
|
2023-01-23 22:41:38 +00:00
|
|
|
# Create user profile directory if it does not exist.
|
|
|
|
if [ ! -d "/storage/.config/profile.d" ]
|
|
|
|
then
|
|
|
|
mkdir -p /storage/.config/profile.d
|
|
|
|
fi
|
2022-10-02 16:46:51 +00:00
|
|
|
|
2023-01-23 22:41:38 +00:00
|
|
|
# Read user config files
|
|
|
|
for CONFIG in /storage/.config/profile.d/*; do
|
|
|
|
if [ -f "${CONFIG}" ] ; then
|
|
|
|
. ${CONFIG}
|
2022-10-02 16:46:51 +00:00
|
|
|
fi
|
2023-01-23 22:41:38 +00:00
|
|
|
done
|