* Fixed a bug in Network->get_ips() bridge detection bashlet.

Signed-off-by: Digimer <digimer@alteeve.ca>
main
Digimer 4 years ago
parent 0dd92a08c5
commit 1a8215a783
  1. 4
      Anvil/Tools/Network.pm

@ -1690,10 +1690,10 @@ sub get_ips
# address from there. If not, read the MAC address from
# '/sys/class/net/<nic>/address'.
my $shell_call = 'IFACE='.$in_iface.'
if [ -e "$IFACE" ];
if [ -e "/sys/class/net/${IFACE}/bridge" ];
then
echo bridge;
elif [ -e "/proc/net/bonding/$IFACE" ];
elif [ -e "/proc/net/bonding/${IFACE}" ];
then
echo bond;
elif [ -e "/sys/class/net/${IFACE}/bonding_slave/perm_hwaddr" ];

Loading…
Cancel
Save