xref: /onnv-gate/usr/src/cmd/svc/milestone/net-ipqos (revision 11767:8f30d0e611c6)
1*11767SAnurag.Maskey@Sun.COM#!/sbin/sh
2*11767SAnurag.Maskey@Sun.COM#
3*11767SAnurag.Maskey@Sun.COM# CDDL HEADER START
4*11767SAnurag.Maskey@Sun.COM#
5*11767SAnurag.Maskey@Sun.COM# The contents of this file are subject to the terms of the
6*11767SAnurag.Maskey@Sun.COM# Common Development and Distribution License (the "License").
7*11767SAnurag.Maskey@Sun.COM# You may not use this file except in compliance with the License.
8*11767SAnurag.Maskey@Sun.COM#
9*11767SAnurag.Maskey@Sun.COM# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10*11767SAnurag.Maskey@Sun.COM# or http://www.opensolaris.org/os/licensing.
11*11767SAnurag.Maskey@Sun.COM# See the License for the specific language governing permissions
12*11767SAnurag.Maskey@Sun.COM# and limitations under the License.
13*11767SAnurag.Maskey@Sun.COM#
14*11767SAnurag.Maskey@Sun.COM# When distributing Covered Code, include this CDDL HEADER in each
15*11767SAnurag.Maskey@Sun.COM# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16*11767SAnurag.Maskey@Sun.COM# If applicable, add the following below this CDDL HEADER, with the
17*11767SAnurag.Maskey@Sun.COM# fields enclosed by brackets "[]" replaced with your own identifying
18*11767SAnurag.Maskey@Sun.COM# information: Portions Copyright [yyyy] [name of copyright owner]
19*11767SAnurag.Maskey@Sun.COM#
20*11767SAnurag.Maskey@Sun.COM# CDDL HEADER END
21*11767SAnurag.Maskey@Sun.COM#
22*11767SAnurag.Maskey@Sun.COM#
23*11767SAnurag.Maskey@Sun.COM# Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
24*11767SAnurag.Maskey@Sun.COM# Use is subject to license terms.
25*11767SAnurag.Maskey@Sun.COM#
26*11767SAnurag.Maskey@Sun.COM
27*11767SAnurag.Maskey@Sun.COM#
28*11767SAnurag.Maskey@Sun.COM# Load the IPQoS configuration.
29*11767SAnurag.Maskey@Sun.COM#
30*11767SAnurag.Maskey@Sun.COM
31*11767SAnurag.Maskey@Sun.COM. /lib/svc/share/smf_include.sh
32*11767SAnurag.Maskey@Sun.COM
33*11767SAnurag.Maskey@Sun.COM#
34*11767SAnurag.Maskey@Sun.COM# In a shared-IP zone we need this service to be up, but all of the
35*11767SAnurag.Maskey@Sun.COM# work it tries to do is irrelevant (and will actually lead to the
36*11767SAnurag.Maskey@Sun.COM# service failing if we try to do it), so just bail out.
37*11767SAnurag.Maskey@Sun.COM# In the global zone and exclusive-IP zones we proceed.
38*11767SAnurag.Maskey@Sun.COM#
39*11767SAnurag.Maskey@Sun.COMsmf_configure_ip || exit $SMF_EXIT_OK
40*11767SAnurag.Maskey@Sun.COM
41*11767SAnurag.Maskey@Sun.COM#
42*11767SAnurag.Maskey@Sun.COM# This is backgrounded so that any remote hostname lookups it performs
43*11767SAnurag.Maskey@Sun.COM# don't unduely delay startup. Any messages go via syslog.
44*11767SAnurag.Maskey@Sun.COM#
45*11767SAnurag.Maskey@Sun.COM
46*11767SAnurag.Maskey@Sun.COMif [ -f /usr/sbin/ipqosconf -a -f /etc/inet/ipqosinit.conf ]; then
47*11767SAnurag.Maskey@Sun.COM        /usr/sbin/ipqosconf -s -a /etc/inet/ipqosinit.conf &
48*11767SAnurag.Maskey@Sun.COMfi
49