aoe 249 B

123456789
  1. #!/bin/sh
  2. # Run aoe-discover if a device different from lo is brought up.
  3. # This might be restricted to ethernet interfaces, on the other hand,
  4. # aoe-discover is pretty cheap.
  5. if [ "${1-}" != 'lo' ] && [ "${2-}" = 'up' ]; then
  6. aoe-discover
  7. fi