Changed yadm bootstrap to ask for the class

This commit is contained in:
Michel Fedde 2025-02-24 19:42:45 +01:00
parent 120412d0d3
commit 9958a7fa0e
5 changed files with 12 additions and 0 deletions

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