blob: 4c9f43a28a884de7f3403aac07b1156780579d81 (
plain)
1
2
3
4
5
6
7
8
9
|
#!/usr/bin/env zsh
cat hardware.csv | cut -d, -f 1,5 | grep -v TODO | grep -v name | grep -v ipmi | grep -v wired | while read line; do
NAME=$(echo $line | cut -d, -f 1)
MAC=$(echo $line | cut -d, -f 2)
echo "config host"
echo "\toption name '$NAME'"
echo "\toption mac '$MAC'"
done
|