2
0
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:
huweihua 2015-11-27 03:02:02 -05:00
parent 1aab9c6227
commit b0bf7931ac

View File

@ -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