local-top_aoe 539 B

123456789101112131415161718192021222324252627282930313233343536
  1. #!/bin/sh
  2. set -e
  3. PREREQ="udev"
  4. prereqs() {
  5. echo "$PREREQ"
  6. }
  7. case $1 in
  8. prereqs)
  9. prereqs
  10. exit 0
  11. ;;
  12. esac
  13. # Bring in the main config
  14. . /conf/initramfs.conf
  15. for conf in conf/conf.d/*; do
  16. [ -f "$conf" ] && . "$conf"
  17. done
  18. . /scripts/functions
  19. configure_networking
  20. # Make sure udev has processed all events from adding the NIC
  21. # modules before loading aoe
  22. wait_for_udev 10
  23. modprobe aoe
  24. # Wait until aoe device files have been generated.
  25. wait_for_udev 10
  26. [ -x /usr/sbin/aoe-discover ] && aoe-discover