Sets class before running any bootstrap

This commit is contained in:
Michel Fedde 2025-02-25 11:21:20 +01:00
parent abaee21ad8
commit 614aed4c12
4 changed files with 15 additions and 3 deletions

12
.config/yadm/_set_class.sh Executable file
View file

@ -0,0 +1,12 @@
#!/bin/env sh
class=$(yadm config local.class)
if [[ ! -z $class ]]; then
exit 0
fi
read -p "-- Which class does this device belong to: " -r class
echo "-- Setting class and reloading alternative files"
yadm config local.class $class
yadm alt