Sets class before running any bootstrap
This commit is contained in:
parent
abaee21ad8
commit
614aed4c12
4 changed files with 15 additions and 3 deletions
12
.config/yadm/_set_class.sh
Executable file
12
.config/yadm/_set_class.sh
Executable 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue