Project

General

Profile

Actions

Bug #5437

closed

Add non-interactive mode for ypinit

Added by Marcel Telka almost 7 years ago. Updated almost 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
cmd - userland programs
Start date:
2014-12-15
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Gerrit CR:

Description

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.

Actions

Also available in: Atom PDF