16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync# CDDL HEADER START
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync# The contents of this file are subject to the terms of the
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync# Common Development and Distribution License, Version 1.0 only
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync# (the "License"). You may not use this file except in compliance
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync# with the License.
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync# See the License for the specific language governing permissions
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync# and limitations under the License.
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync# When distributing Covered Code, include this CDDL HEADER in each
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync# If applicable, add the following below this CDDL HEADER, with the
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync# fields enclosed by brackets "[]" replaced with your own identifying
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync# information: Portions Copyright [yyyy] [name of copyright owner]
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync# CDDL HEADER END
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync# Copyright 1999-2002 Sun Microsystems, Inc. All rights reserved.
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync# Use is subject to license terms.
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync#ident "%Z%%M% %I% %E% SMI"
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync# Default config values used by script
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync# Function used to parse the interface names from /etc/hostname.* entries
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync while read i; do
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync continue ;;
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync '*') configinterfaces="`echo /etc/hostname.*[0-9] \
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync if [ ! -f $ncakmodconf ]; then
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync # If configuration file is missing, just exit
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync # Default is "disabled" so we want to exit
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync if [ -f "$ncaifconf" ]; then
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync findinterface="`echo $i | /bin/grep '[0-9][0-9]*'`"
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync # Need to expand interface (ie. iprb)
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync # If we don't have any interfaces configured, exit
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync # Prevent multiple instances of ncaconfd