12345678910111213141516171819202122232425262728293031323334353637 |
- #!/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 /sbin/aoe-discover ] && aoe-discover
|