1#!/bin/sh 2# Copyright (c) 2020 Petr Vorel <pvorel@suse.cz> 3 4. tst_net.sh 5 6check_portmap_rpcbind() 7{ 8 if pgrep portmap > /dev/null; then 9 PORTMAPPER="portmap" 10 else 11 pgrep rpcbind > /dev/null && PORTMAPPER="rpcbind" || \ 12 tst_brk TCONF "portmap or rpcbind is not running" 13 fi 14 tst_res TINFO "using $PORTMAPPER" 15} 16