net-svc (27092493) net-svc (f4b3ec61)
1#!/sbin/sh
2#
3# CDDL HEADER START
4#
5# The contents of this file are subject to the terms of the
6# Common Development and Distribution License (the "License").
7# You may not use this file except in compliance with the License.
8#

--- 6 unchanged lines hidden (view full) ---

15# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16# If applicable, add the following below this CDDL HEADER, with the
17# fields enclosed by brackets "[]" replaced with your own identifying
18# information: Portions Copyright [yyyy] [name of copyright owner]
19#
20# CDDL HEADER END
21#
22#
1#!/sbin/sh
2#
3# CDDL HEADER START
4#
5# The contents of this file are subject to the terms of the
6# Common Development and Distribution License (the "License").
7# You may not use this file except in compliance with the License.
8#

--- 6 unchanged lines hidden (view full) ---

15# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16# If applicable, add the following below this CDDL HEADER, with the
17# fields enclosed by brackets "[]" replaced with your own identifying
18# information: Portions Copyright [yyyy] [name of copyright owner]
19#
20# CDDL HEADER END
21#
22#
23# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
23# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
24# Use is subject to license terms.
25#
26#ident "%Z%%M% %I% %E% SMI"
27
28#
29# This is third phase of TCP/IP startup/configuration. This script
30# runs after the NIS/NIS+ startup script. We run things here that may
31# depend on NIS/NIS+ maps.
32#
33
34. /lib/svc/share/smf_include.sh
35
36case "$1" in
37'start')
38 #
24# Use is subject to license terms.
25#
26#ident "%Z%%M% %I% %E% SMI"
27
28#
29# This is third phase of TCP/IP startup/configuration. This script
30# runs after the NIS/NIS+ startup script. We run things here that may
31# depend on NIS/NIS+ maps.
32#
33
34. /lib/svc/share/smf_include.sh
35
36case "$1" in
37'start')
38 #
39 # In a zone we need this service to be up, but all of the work
40 # it tries to do is irrelevant (and will actually lead to the service
41 # failing if we try to do it), so just bail out.
39 # In a shared-IP zone we need this service to be up, but all of the
40 # work it tries to do is irrelevant (and will actually lead to the
41 # service failing if we try to do it), so just bail out.
42 # In the global zone and exclusive-IP zones we proceed.
42 #
43 #
43 smf_is_globalzone || exit 0
44 smf_configure_ip || exit 0
44 ;; # Fall through -- rest of script is the initialization code
45
46'stop')
47 exit 0
48 ;;
49
50*)
51 echo "Usage: $0 { start | stop }"

--- 279 unchanged lines hidden ---
45 ;; # Fall through -- rest of script is the initialization code
46
47'stop')
48 exit 0
49 ;;
50
51*)
52 echo "Usage: $0 { start | stop }"

--- 279 unchanged lines hidden ---