UNPKG

431 Bapplication/x-shView Raw
1# Fix BZ657630
2
3function wait-for-bigip() {
4 echo "** BigIP waiting ..."
5 bigstart_wait mcpd ready
6 while ! tmsh show sys mcp-state field-fmt | grep -qE 'phase.+running' || pidof -x mprov.pl >/dev/null 2>&1; do sleep 1; done
7 if [[ ! $(getdb Provision.CPU.asm) == 0 ]]; then perl -MF5::ASMReady -e '$|++; do {print "waiting for asm...\n"; sleep(1)} while !F5::ASMReady::is_asm_ready()'; fi
8 echo "** BigIp ready."
9}