svc-ndp revision ceb97a6a3232437e1f0b4c6b8604bc1b4245ccc5
af062818b47340eef15700d2f0211576ba3506eevboxsync# CDDL HEADER START
af062818b47340eef15700d2f0211576ba3506eevboxsync# The contents of this file are subject to the terms of the
af062818b47340eef15700d2f0211576ba3506eevboxsync# Common Development and Distribution License (the "License").
af062818b47340eef15700d2f0211576ba3506eevboxsync# You may not use this file except in compliance with the License.
af062818b47340eef15700d2f0211576ba3506eevboxsync# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
af062818b47340eef15700d2f0211576ba3506eevboxsync# See the License for the specific language governing permissions
af062818b47340eef15700d2f0211576ba3506eevboxsync# and limitations under the License.
af062818b47340eef15700d2f0211576ba3506eevboxsync# When distributing Covered Code, include this CDDL HEADER in each
af062818b47340eef15700d2f0211576ba3506eevboxsync# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
af062818b47340eef15700d2f0211576ba3506eevboxsync# If applicable, add the following below this CDDL HEADER, with the
af062818b47340eef15700d2f0211576ba3506eevboxsync# fields enclosed by brackets "[]" replaced with your own identifying
af062818b47340eef15700d2f0211576ba3506eevboxsync# information: Portions Copyright [yyyy] [name of copyright owner]
af062818b47340eef15700d2f0211576ba3506eevboxsync# CDDL HEADER END
af062818b47340eef15700d2f0211576ba3506eevboxsync# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
af062818b47340eef15700d2f0211576ba3506eevboxsync# Use is subject to license terms.
af062818b47340eef15700d2f0211576ba3506eevboxsync# ident "%Z%%M% %I% %E% SMI"
af062818b47340eef15700d2f0211576ba3506eevboxsync# Handle upgrade - routing/daemon-args property must be mapped to properties
af062818b47340eef15700d2f0211576ba3506eevboxsync# in routeadm property group. Note that the SMF-incompatible -t option is not
af062818b47340eef15700d2f0211576ba3506eevboxsync# supported, since it requires that in.ndpd run in the foreground.
af062818b47340eef15700d2f0211576ba3506eevboxsyncif [ -n "$daemon_args" ]; then
af062818b47340eef15700d2f0211576ba3506eevboxsync set_daemon_boolean_property "$SMF_FMRI" "$daemon_args" \
af062818b47340eef15700d2f0211576ba3506eevboxsync set_daemon_boolean_property "$SMF_FMRI" "$daemon_args" \
af062818b47340eef15700d2f0211576ba3506eevboxsync set_daemon_value_property "$SMF_FMRI" "$daemon_args" \
ee6bcfc59fe3b0230aad85e2ef63d0402b7719b2vboxsync# Assemble arguments to daemon from properties
ee6bcfc59fe3b0230aad85e2ef63d0402b7719b2vboxsyncargs="`get_daemon_option_from_boolean_property $SMF_FMRI stateless_addr_conf \
ee6bcfc59fe3b0230aad85e2ef63d0402b7719b2vboxsyncargs="$args`get_daemon_option_from_boolean_property $SMF_FMRI debug d true`"
ee6bcfc59fe3b0230aad85e2ef63d0402b7719b2vboxsyncif [ -n "$args" ]; then