distribution/packages/hardware/quirks/autostart/020-configs
fewtarius 8c08cdbfe9
* Add a mechanism for providing configuration on a per device basis.
* Supported via fresh flash and during the first post-install reboot.
  * Add configurations to packages/hardware/quirks/devices/(DEVICE)/config/ in the same format it would be found in /storage/.config.
  * System generic configs are copied first, and device specific configs are copied over them.
* Tweak audio so it works on boot.
2023-07-01 18:46:51 +00:00

13 lines
468 B
Bash
Executable file

#!/bin/bash
# SPDX-License-Identifier: Apache-2.0
# Copyright (C) 2023-present Fewtarius (https://github.com/fewtarius)
. /etc/profile
if [ -d "/usr/lib/autostart/quirks/${QUIRK_DEVICE}/config" ] && \
[ ! -f ".quirkconfigs" ]
then
tocon "Applying ${QUIRK_DEVICE} specific configuration..."
rsync -a --exclude={es_features.cfg,es_systems.cfg} /usr/lib/autostart/quirks/"${QUIRK_DEVICE}"/config/* /storage/.config/ 2>/dev/null
touch /storage/.quirkconfigs
fi