8c08cdbfe9
* 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.
12 lines
498 B
Bash
12 lines
498 B
Bash
#!/bin/bash
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
# Copyright (C) 2021-present Fewtarius (https://github.com/fewtarius)
|
|
|
|
### Apply device quirks
|
|
if [ -e "/sys/firmware/devicetree/base/model" ]
|
|
then
|
|
export QUIRK_DEVICE="$(tr -d '\0' </sys/firmware/devicetree/base/model 2>/dev/null)"
|
|
else
|
|
export QUIRK_DEVICE="$(tr -d '\0' </sys/class/dmi/id/sys_vendor 2>/dev/null) $(tr -d '\0' </sys/class/dmi/id/product_name 2>/dev/null)"
|
|
fi
|
|
export QUIRK_DEVICE="$(echo ${QUIRK_DEVICE} | sed -e "s#[/]#-#g")"
|