sync from the trunk for hardware discovery on debian/ubuntu
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16252 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
e2055a8251
commit
0724220b72
@ -1121,7 +1121,12 @@ sub get_mac_by_arp ()
|
||||
if ( xCAT::Utils->isAIX() ) {
|
||||
$output = `/usr/sbin/arp -a`;
|
||||
} else {
|
||||
$output = `/sbin/arp -n`;
|
||||
if ( -e "/etc/debian_version" ) {
|
||||
$output = `/usr/sbin/arp -n`;
|
||||
}
|
||||
else {
|
||||
$output = `/sbin/arp -n`;
|
||||
}
|
||||
}
|
||||
|
||||
my ($ip, $mac);
|
||||
|
Loading…
Reference in New Issue
Block a user