mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-29 17:23:08 +00:00
modify depending on samveen 's comment
This commit is contained in:
parent
1aab9c6227
commit
b0bf7931ac
@ -15,11 +15,10 @@ if [ -f "$ADAPTERFILE" ]; then
|
||||
rm -f "$ADAPTERFILE" >> "$SCANNICLOG" 2>&1
|
||||
fi
|
||||
|
||||
|
||||
echo '<xcatrequest>' > "$ADAPTERFILE"
|
||||
echo "<command>findadapter</command>" >> "$ADAPTERFILE"
|
||||
echo "<ClientType>cli</ClientType>" >> "$ADAPTERFILE"
|
||||
echo "<hostname>$HOSTNAME</hostname>" >> "$ADAPTERFILE"
|
||||
echo "<xcatrequest>
|
||||
<command>findadapter</command>
|
||||
<clienttype>cli</clienttype>
|
||||
<hostname>$HOSTNAME</hostname>" >> "$ADAPTERFILE"
|
||||
|
||||
#scan adapters have recognized by operating system
|
||||
for n in /sys/class/net/*; do
|
||||
|
Loading…
x
Reference in New Issue
Block a user