File: local-top_aoe

package info (click to toggle)
aoetools 36-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 464 kB
  • sloc: ansic: 1,506; sh: 627; makefile: 54
file content (37 lines) | stat: -rw-r--r-- 515 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/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