Add non-interactive mode for ypinit
cmd - userland programs
It'd be great to have an opportunity to set up the NIS client in a following way, e.g:
ypinit -c 192.168.1.100 192.168.2.100 192.168.3.1
Currently setting up the NIS client looks like this:
root@myhost:~/tmp# ypinit -c In order for NIS to operate sucessfully, we have to construct a list of the NIS servers. Please continue to add the names for YP servers in order of preference, one per line. When you are done with the list, type a <control D> or a return on a line by itself. next host to add: 192.168.1.100 next host to add: 192.168.2.100 next host to add: 192.168.3.1 next host to add: The current list of yp servers looks like this: 192.168.1.100 192.168.2.100 192.168.3.1 Is this correct? [y/n: y]
Work by Eugene Khudyakoff.