#!/bin/sh
#
# Copyright (c) 1993, by Sun Microsystems, Inc.
#
#ident	"$Header: /net/projects/S2.6/cvs/os_net/src_ws/usr/src/tadcmd/locations/init.d/nsswitch,v 1.1 1997/10/09 10:37:04 ang Exp $"
#
#LocINFO Network Services Switch Configuration (nsswitch.conf)
#

#
# Start/stop nsswitch
#

case "$1" in

'start')
    cp -p $LOCDB/etc/nsswitch.conf /etc
    ;;

'stop')
    cp -p /etc/nsswitch.files /etc/nsswitch.conf
    ;;

'create')
    cp -p /etc/nsswitch.conf $LOCDB/etc
    ;;

*)
    echo "Usage: $0 { start | stop | create }" 1>&2
    ;;
esac

exit 0
