# Copyright (c) 2012 Tresys Technology LLC, Columbia, Maryland, USA
#
# This software was developed by Tresys Technology LLC
# with U.S. Government sponsorship.
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.


delete_nis_lines(){
# Delete entries that begin with the +: nis entry.
#
#  arguments:
#    delete_nis_lines(FILE)
#      FILE  - File to check for nis lines.
#
	FILE=$1
	
	[ -f $FILE ] || exit 0

	/bin/sed -i -e "/^\+\:.*/d" $FILE
}
