distribution/packages/sysutils/autostart/sources/common/010-uimode
fewtarius 4b9e65325f
* Update kernel and OS to support AyaNeo Air / Air Pro fan control.
* Bump WIFI drivers.
* Add WIFI module quirk and WIFI not waking from sleep on Air.
* Fix splash screen on rotated displays.
* Move autostart to its own package.
2022-12-19 17:14:32 -05:00

21 lines
549 B
Bash
Executable file

#!/bin/bash
# SPDX-License-Identifier: Apache-2.0
# Copyright (C) 2022-present Fewtarius (https://github.com/fewtarius)
. /etc/profile
UIMODE=$(get_setting desktop.enabled)
if [ "${UIMODE}" = "1" ]
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}" ]
then
STARTUP="/usr/bin/start_es.sh"
set_setting weston.startup "${STARTUP}"
fi
sed -i "s#@STARTUP@#${STARTUP}#g" /storage/.config/weston.ini