nsswitch (158266) | nsswitch (165664) |
---|---|
1#!/bin/sh 2# 3# Copyright (c) 1993 - 2004 The FreeBSD Project. All rights reserved. 4# 5# Redistribution and use in source and binary forms, with or without 6# modification, are permitted provided that the following conditions 7# are met: 8# 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24# SUCH DAMAGE. 25# | 1#!/bin/sh 2# 3# Copyright (c) 1993 - 2004 The FreeBSD Project. All rights reserved. 4# 5# Redistribution and use in source and binary forms, with or without 6# modification, are permitted provided that the following conditions 7# are met: 8# 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24# SUCH DAMAGE. 25# |
26# $FreeBSD: head/etc/rc.d/nsswitch 158266 2006-05-03 15:14:47Z ume $ | 26# $FreeBSD: head/etc/rc.d/nsswitch 165664 2006-12-30 22:53:20Z yar $ |
27# 28 29# PROVIDE: nsswitch 30# REQUIRE: root 31# BEFORE: NETWORK 32 33. /etc/rc.subr 34 35name="nsswitch" 36start_cmd="nsswitch_start" 37stop_cmd=":" 38 39generate_host_conf() 40{ | 27# 28 29# PROVIDE: nsswitch 30# REQUIRE: root 31# BEFORE: NETWORK 32 33. /etc/rc.subr 34 35name="nsswitch" 36start_cmd="nsswitch_start" 37stop_cmd=":" 38 39generate_host_conf() 40{ |
41 local _cont _sources 42 |
|
41 nsswitch_conf=$1; shift; 42 host_conf=$1; shift; 43 44 _cont=0 45 _sources="" 46 while read line; do 47 line=${line##[ ]} 48 case $line in --- 53 unchanged lines hidden --- | 43 nsswitch_conf=$1; shift; 44 host_conf=$1; shift; 45 46 _cont=0 47 _sources="" 48 while read line; do 49 line=${line##[ ]} 50 case $line in --- 53 unchanged lines hidden --- |