26 lines
782 B
Bash
Executable file
26 lines
782 B
Bash
Executable file
#!/bin/sh
|
|
# SPDX-License-Identifier: GPL-2.0
|
|
# Copyright (C) 2023-present - The JELOS Project (https://github.com/JustEnoughLinuxOS) (https://github.com/fewtarius)
|
|
|
|
# Minimal OS variable loading for performance
|
|
. /etc/profile.d/001-functions
|
|
|
|
tocon "Configuring user interface..."
|
|
|
|
UIMODE=$(get_setting desktop.enabled)
|
|
if [ "${UIMODE}" = "1" ] || \
|
|
[ ! -e "/usr/bin/emulationstation" ]
|
|
then
|
|
cp -f /usr/share/weston/weston.ini /storage/.config/weston.ini
|
|
else
|
|
cp -f /usr/share/weston/kiosk.ini /storage/.config/weston.ini
|
|
fi
|
|
|
|
STARTUP=$(get_setting weston.startup)
|
|
if [ -z "${STARTUP}" ] && \
|
|
[ -e "/usr/bin/emulationstation" ]
|
|
then
|
|
STARTUP="/usr/bin/start_es.sh"
|
|
set_setting weston.startup "${STARTUP}"
|
|
fi
|
|
sed -i "s#@STARTUP@#${STARTUP}#g" /storage/.config/weston.ini
|