12 lines
248 B
Bash
Executable file
12 lines
248 B
Bash
Executable file
#!/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
|