Changed yadm bootstrap to ask for the class
This commit is contained in:
parent
120412d0d3
commit
9958a7fa0e
5 changed files with 12 additions and 0 deletions
12
.config/yadm/bootstrap.d/00-SetClass.sh
Executable file
12
.config/yadm/bootstrap.d/00-SetClass.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