summaryrefslogtreecommitdiffstats
path: root/projectroot/usr/lib/udev/of_base_compatible
diff options
context:
space:
mode:
Diffstat (limited to 'projectroot/usr/lib/udev/of_base_compatible')
-rwxr-xr-xprojectroot/usr/lib/udev/of_base_compatible4
1 files changed, 4 insertions, 0 deletions
diff --git a/projectroot/usr/lib/udev/of_base_compatible b/projectroot/usr/lib/udev/of_base_compatible
new file mode 100755
index 0000000..07c7f76
--- /dev/null
+++ b/projectroot/usr/lib/udev/of_base_compatible
@@ -0,0 +1,4 @@
+#!/bin/sh
+# SPDX-License-Identifier: 0-BSD
+# SPDX-FileCopyrightText: 2021 Roland Hieber, Pengutronix <rhi@pengutronix.de>
+printf 'OF_BASE_COMPATIBLE="%s"\n' "$(tr '\0' ' ' < /sys/firmware/devicetree/base/compatible)"