mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-31 10:06:39 +00:00
Merge pull request #6292 from tingtli/shellcase
update the script to remove false error
This commit is contained in:
commit
e333afb5d7
@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
function check_destiny(){
|
||||
chdef testnode arch=ppc64le cons=ipmi groups=all ip=60.1.1.1 netboot=$NETBOOT;
|
||||
chdef testnode arch=ppc64le cons=ipmi groups=all ip=60.1.1.1 mac=4e:ee:ee:ee:ee:0e netboot=$NETBOOT;
|
||||
masterip=`lsdef -t site -i master -c 2>&1 | awk -F'=' '{print $2}'`;
|
||||
masternet=`ifconfig | awk "BEGIN{RS=\"\"}/\<$masterip\>/{print \$1}"|head -n 1 | awk -F ' ' '{print $1}'|awk -F ":" '{print \$1}' 2>&1`;
|
||||
net2=`netstat -i -a|grep -v Kernel|grep -v Iface |grep -v lo|grep -v $masternet|head -n 1|awk '{print $1}'`;echo net2 is $net2;
|
||||
|
Loading…
x
Reference in New Issue
Block a user