Skip to content
Snippets Groups Projects
Commit 5326dc8f authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Merge branch 'allow_driver_categories' into 'master'

Find pcid config files in driver category subdirectories

See merge request !351
parents def586a5 db1d4664
No related branches found
No related tags found
1 merge request!351Find pcid config files in driver category subdirectories
...@@ -53,7 +53,7 @@ mkdir -pv "${COOKBOOK_STAGE}/etc/pcid" ...@@ -53,7 +53,7 @@ mkdir -pv "${COOKBOOK_STAGE}/etc/pcid"
cp -v "${COOKBOOK_SOURCE}/initfs.toml" "${COOKBOOK_STAGE}/etc/pcid/initfs.toml" cp -v "${COOKBOOK_SOURCE}/initfs.toml" "${COOKBOOK_STAGE}/etc/pcid/initfs.toml"
mkdir -pv "${COOKBOOK_STAGE}/etc/pcid.d" mkdir -pv "${COOKBOOK_STAGE}/etc/pcid.d"
${FIND} "${COOKBOOK_SOURCE}" -maxdepth 2 -type f -name 'config.toml' | while read conf ${FIND} "${COOKBOOK_SOURCE}" -maxdepth 3 -type f -name 'config.toml' | while read conf
do do
driver="$(basename "$(dirname "$conf")")" driver="$(basename "$(dirname "$conf")")"
cp -v "$conf" "${COOKBOOK_STAGE}/etc/pcid.d/$driver.toml" cp -v "$conf" "${COOKBOOK_STAGE}/etc/pcid.d/$driver.toml"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment