We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 38bbb39 + e759ffc commit 4c31fc2Copy full SHA for 4c31fc2
tools/set-next-server.sh
@@ -37,7 +37,7 @@ fogip="172.21.0.72"
37
fogfilename="/undionly.kpxe"
38
macaddr=$(sed -n "/host ${host}-front/,/}/p" $dhcpconfig | grep 'hardware ethernet' | awk '{ print $3 }' | tr -d ';')
39
ipaddr=$(sed -n "/host ${host}-front/,/}/p" $dhcpconfig | grep 'fixed-address' | awk '{ print $2 }' | tr -d ';')
40
-linenum=$(grep -n $host $dhcpconfig | cut -d ':' -f1)
+linenum=$(grep -n $host $dhcpconfig | grep -v "host-name" | cut -d ':' -f1)
41
42
if [ -z "$macaddr" ]; then
43
echo "No MAC address found for $host"
0 commit comments