blob: f992ae225f318004902dd0e833caae39e18d5ab6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/bin/sh
if ! getargbool 1 rd.fcoe -d -n rd.nofcoe; then
info "rd.fcoe=0: skipping lldpad activation"
return 0
fi
# Note lldpad will stay running after switchroot, the system initscripts
# are to kill it and start a new lldpad to take over. Data is transferred
# between the 2 using a shm segment
lldpad -d
# wait for lldpad to be ready
i=0
while [ $i -lt 60 ]; do
lldptool -p && break
info "Waiting for lldpad to be ready"
sleep 1
i=$((i + 1))
done
|