summaryrefslogtreecommitdiff
path: root/usr/src/cmd/initpkg/rcS.sh
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/cmd/initpkg/rcS.sh')
-rw-r--r--usr/src/cmd/initpkg/rcS.sh48
1 files changed, 5 insertions, 43 deletions
diff --git a/usr/src/cmd/initpkg/rcS.sh b/usr/src/cmd/initpkg/rcS.sh
index 962035549e..5e41614d7e 100644
--- a/usr/src/cmd/initpkg/rcS.sh
+++ b/usr/src/cmd/initpkg/rcS.sh
@@ -3,9 +3,8 @@
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
-# Common Development and Distribution License, Version 1.0 only
-# (the "License"). You may not use this file except in compliance
-# with the License.
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
@@ -21,7 +20,7 @@
# CDDL HEADER END
#
#
-# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
# ident "%Z%%M% %I% %E% SMI"
@@ -102,47 +101,10 @@ export _INIT_RUN_LEVEL _INIT_RUN_NPREV _INIT_PREV_LEVEL \
_INIT_UTS_SYSNAME _INIT_UTS_NODENAME _INIT_UTS_RELEASE _INIT_UTS_VERSION \
_INIT_UTS_MACHINE _INIT_UTS_ISA _INIT_UTS_PLATFORM
-_INIT_ZONENAME=`/sbin/zonename`
-
-export _INIT_ZONENAME
-
-if [ "$_INIT_ZONENAME" = "global" ]; then
- # Export net boot configuration strategy. _INIT_NET_IF is set to the
- # interface name of the netbooted interface if this is a net boot.
- # _INIT_NET_STRATEGY is set to the network configuration strategy.
- set -- `/sbin/netstrategy`
- if [ $? -eq 0 ]; then
- if [ "$1" = "nfs" -o "$1" = "cachefs" ]; then
- _INIT_NET_IF="$2"
- export _INIT_NET_IF
- fi
- _INIT_NET_STRATEGY="$3"
- fi
-else
- # Special case for zones since netstrategy needs /dev/ip which does
- # not exist in a non-global zone. Also, the _IF variable is only
- # consumed in the global zone.
- _INIT_NET_STRATEGY="none"
-fi
-export _INIT_NET_STRATEGY
-
-#
-# Useful shell functions:
-#
-
-#
-# shcat file
#
-# Simulates cat in sh so it doesn't need to be on the root filesystem.
+# Set _INIT_NET_STRATEGY and _INIT_NET_IF variables from /sbin/netstrategy
#
-shcat() {
- while [ $# -ge 1 ]; do
- while read i; do
- echo "$i"
- done < $1
- shift
- done
-}
+smf_netstrategy
. /lib/svc/share/fs_include.sh