3 # Save client nsswitch configuration
5 require './nis-lib.pl';
7 &error_setup($text{'switch_err'});
9 foreach $sv (split(/\s+/, $in{'list'})) {
10 if (defined($o = $in{"order_$sv"})) {
12 &error(&text('switch_eorder', $text{"switch_$sv"}));
13 &save_nsswitch($sv, $o);
17 for($i=1; defined($o = $in{"order_${sv}_${i}"}); $i++) {
18 push(@order, $o) if ($o);
20 &save_nsswitch($sv, join(" ", @order));