datalink revision 7c478bd95313f5f23a4c958a745db2134aa03244
ac4e70ff8955669341f435bc0a734a17c01af124Mark Andrews#!/sbin/sh
5ae0e2c8b72fa44237edeb37d1945b1c3535ca39Automatic Updater#
5ae0e2c8b72fa44237edeb37d1945b1c3535ca39Automatic Updater# CDDL HEADER START
e999539fb3e45b2617571e0e3ecd651992291701Mark Andrews#
e999539fb3e45b2617571e0e3ecd651992291701Mark Andrews# The contents of this file are subject to the terms of the
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater# Common Development and Distribution License, Version 1.0 only
555d01f4c02295e896a26c649d0ffc8808a0bbdcAutomatic Updater# (the "License"). You may not use this file except in compliance
a3b428812703d22a605a9f882e71ed65f0ffdc65Mark Andrews# with the License.
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater#
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
ac4e70ff8955669341f435bc0a734a17c01af124Mark Andrews# or http://www.opensolaris.org/os/licensing.
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater# See the License for the specific language governing permissions
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# and limitations under the License.
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater#
5c0fc20d6e59216d9a142409e5fdb498153aeaa5Automatic Updater# When distributing Covered Code, include this CDDL HEADER in each
56874aef380a64a2c183b7c282c3e7a361d67fa1Automatic Updater# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# If applicable, add the following below this CDDL HEADER, with the
56874aef380a64a2c183b7c282c3e7a361d67fa1Automatic Updater# fields enclosed by brackets "[]" replaced with your own identifying
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark Andrews# information: Portions Copyright [yyyy] [name of copyright owner]
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# CDDL HEADER END
04eba969cb9a54bbda2896db2067c07b2ac5ba16Automatic Updater#
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark Andrews#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews# Use is subject to license terms.
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews#
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews# ident "%Z%%M% %I% %E% SMI"
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrewsif [ `/sbin/zonename` != "global" ]; then
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews exit 0
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafssonfi
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellingtonv1=`svcprop -p system/reconfigure system/svc/restarter:default`
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updaterif [ "$v1" = "true" -o -f /etc/.UNCONFIGURED ]; then
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews /sbin/dladm init-link -t > /dev/msglog 2>&1
bac1bc98410bd876b8d38a6de6126709a7f8cc5aAutomatic Updaterfi
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark Andrews/sbin/dladm up-link
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews