From a352f8603a64116e9ec0146d1575ba11701c1536 Mon Sep 17 00:00:00 2001
From: Simon Ellmann <kontakt@simonellmann.de>
Date: Mon, 1 Jul 2019 02:38:34 +0200
Subject: [PATCH] Copy config.toml files of drivers to /etc/pcid.d/

---
 recipes/drivers/recipe.sh | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/recipes/drivers/recipe.sh b/recipes/drivers/recipe.sh
index 5672d3cc7..47a4bbea6 100644
--- a/recipes/drivers/recipe.sh
+++ b/recipes/drivers/recipe.sh
@@ -12,4 +12,11 @@ function recipe_stage {
     mkdir -pv "$1/etc/pcid"
     cp -v initfs.toml "$1/etc/pcid/initfs.toml"
     cp -v filesystem.toml "$1/etc/pcid/filesystem.toml"
+
+    mkdir -pv "$1/etc/pcid.d"
+    for conf in `find . -maxdepth 2 -type f -name 'config.toml'`; do
+        driver=$(echo $conf | cut -d '/' -f2)
+        cp -v $conf "$1/etc/pcid.d/$driver.toml"
+    done
+
 }
-- 
GitLab