#!/bin/bash # SPDX-License-Identifier: GPL-2.0 # Copyright (C) 2023 JELOS (https://github.com/JustEnoughLinuxOS) ### Apply device quirks if [ -e "/sys/firmware/devicetree/base/model" ] then export QUIRK_DEVICE="$(tr -d '\0' /dev/null)" else export QUIRK_DEVICE="$(tr -d '\0' /dev/null) $(tr -d '\0' /dev/null)" fi export QUIRK_DEVICE="$(echo ${QUIRK_DEVICE} | sed -e "s#[/]#-#g")"