Sha256: e2c99300b2468c0377ab4781bd62f9f1a9cba0d12776909b1ae6b0ecd2b9692d

Contents?: true

Size: 360 Bytes

Versions: 1

Compression:

Stored size: 360 Bytes

Contents

#!/bin/bash

# "verify that eth0 and eth1 are bonded"
# this should likely be generalized

if [[ -d /proc/net/bonding ]]  ; then
  for file in /proc/net/bonding/* ; do
    if grep 'eth0' $file &>/dev/null && grep 'eth1' $file &>/dev/null ; then
      echo "OK"
      exit 0
    fi
  done
fi

# fell thru
echo "FAIL
output of ifconfig:
$(ifconfig 2>/dev/null)"

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hostlint-0.0.1 examples/checks/network/ethernet_bonded.sh