7d07eff763
* Apply workaround for no sound / no headphone jack switching (RG353V). * Update ArtBook Next theme. * Ensure the device tree is not swapped after an update. > Note: Exiting RG353V users will need to disable and re-enable the RG353V switch, or run `device-switch RG353V` over ssh.
47 lines
893 B
Bash
47 lines
893 B
Bash
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
# Copyright (C) 2009-2014 Stephan Raue (stephan@openelec.tv)
|
|
|
|
# parse command line arguments
|
|
for arg in $(cat /proc/cmdline); do
|
|
case $arg in
|
|
debugging)
|
|
export DEBUG=yes
|
|
;;
|
|
progress)
|
|
PROGRESS=yes
|
|
;;
|
|
esac
|
|
done
|
|
|
|
if [ -e /storage/.cache/debug.libreelec ] ; then
|
|
export DEBUG=yes
|
|
fi
|
|
|
|
# functions
|
|
progress() {
|
|
if test "$PROGRESS" = yes; then
|
|
logger -s -t Boot "### $1 ###"
|
|
else
|
|
logger -t Boot "### $1 ###"
|
|
fi
|
|
}
|
|
|
|
# read config files
|
|
for config in /etc/profile.d/*; do
|
|
if [ -f "$config" ] ; then
|
|
. $config
|
|
fi
|
|
done
|
|
|
|
# read user config files
|
|
|
|
if [ ! -d "/storage/.config/profile.d" ]
|
|
then
|
|
mkdir -p /storage/.config/profile.d
|
|
fi
|
|
|
|
for config in /storage/.config/profile.d/*; do
|
|
if [ -f "$config" ] ; then
|
|
. $config
|
|
fi
|
|
done
|