123456789101112131415161718192021222324252627282930313233343536 |
- #!/bin/sh
- set -e
- PREREQ="udev"
- prereqs() {
- echo "$PREREQ"
- }
- case $1 in
- prereqs)
- prereqs
- exit 0
- ;;
- esac
- # Bring in the main config
- . /conf/initramfs.conf
- for conf in conf/conf.d/*; do
- [ -f "$conf" ] && . "$conf"
- done
- . /scripts/functions
- configure_networking
- # Make sure udev has processed all events from adding the NIC
- # modules before loading aoe
- wait_for_udev 10
- modprobe aoe
- # Wait until aoe device files have been generated.
- wait_for_udev 10
- [ -x /usr/sbin/aoe-discover ] && aoe-discover
|