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