common/rc: fix check for yp
authorJohannes Thumshirn <jthumshirn@suse.de>
Fri, 12 Oct 2018 11:50:55 +0000 (13:50 +0200)
committerEryu Guan <guaneryu@gmail.com>
Sun, 14 Oct 2018 14:26:47 +0000 (22:26 +0800)
commit45d1dd73754b6b331a37fa5e5230861d6e87889c
treed22ae50d90f725d6e4f4897a3b7b15f308bf9afa
parent60d700e885ffd686e8e4d641a9250450af9c9fe5
common/rc: fix check for yp

Only testing if a domainname is set and ypcat is installed is not a
sufficient criteria to check if NIS is actually active.

Check for a running ypbind in rpcinfo as well.

Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
common/rc