2023-08-07 00:30:11 +00:00
|
|
|
#!/bin/sh
|
2023-10-23 22:44:47 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0
|
2023-10-24 16:00:57 +00:00
|
|
|
# Copyright (C) 2023 JELOS (https://github.com/JustEnoughLinuxOS)
|
2023-07-01 18:46:51 +00:00
|
|
|
|
2023-08-07 00:30:11 +00:00
|
|
|
# Minimal OS variable loading for performance
|
2023-09-04 10:46:11 +00:00
|
|
|
. /etc/profile.d/001-functions
|
2023-07-01 18:46:51 +00:00
|
|
|
|
2023-07-23 13:47:19 +00:00
|
|
|
(
|
2023-07-25 21:06:19 +00:00
|
|
|
|
|
|
|
if [ -d "/usr/lib/autostart/quirks/platforms/${HW_DEVICE}/config" ] && \
|
|
|
|
[ ! -f ".quirk-platform-configs" ]
|
|
|
|
then
|
|
|
|
tocon "Applying ${HW_DEVICE} specific configuration..."
|
|
|
|
rsync -a --exclude={es_features.cfg,es_systems.cfg} /usr/lib/autostart/quirks/platforms/"${HW_DEVICE}"/config/* /storage/.config/ 2>/dev/null
|
|
|
|
touch /storage/.quirk-platform-configs
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ -d "/usr/lib/autostart/quirks/devices/${QUIRK_DEVICE}/config" ] && \
|
|
|
|
[ ! -f ".quirk-device-configs" ]
|
2023-07-23 13:47:19 +00:00
|
|
|
then
|
|
|
|
tocon "Applying ${QUIRK_DEVICE} specific configuration..."
|
2023-07-25 21:06:19 +00:00
|
|
|
rsync -a --exclude={es_features.cfg,es_systems.cfg} /usr/lib/autostart/quirks/devices/"${QUIRK_DEVICE}"/config/* /storage/.config/ 2>/dev/null
|
|
|
|
touch /storage/.quirk-device-configs
|
2023-07-23 13:47:19 +00:00
|
|
|
fi
|
|
|
|
) &
|