datalink revision 210db2243d3b5ca39c96a4c34c6d9453ddfbeaa9
7ea4e81c5409e0ed5d9879e370ac3d7457b5a37eAlexis Tsogias#!/sbin/sh
e9458b1a7a19a63aa4c179f9ab20f4d50681c168Jens Elkner#
1e622ddf5a057555db1924ddc88475c695c6f7f2Alexis Tsogias# CDDL HEADER START
990d9f14e81ad0ffb0fbec4224725b631f5fae27Jonathan von Schroeder#
990d9f14e81ad0ffb0fbec4224725b631f5fae27Jonathan von Schroeder# The contents of this file are subject to the terms of the
7ea4e81c5409e0ed5d9879e370ac3d7457b5a37eAlexis Tsogias# Common Development and Distribution License, Version 1.0 only
7ea4e81c5409e0ed5d9879e370ac3d7457b5a37eAlexis Tsogias# (the "License"). You may not use this file except in compliance
ad1df93673cf323534cdfe18981ad5daae4c90c0Jonathan von Schroeder# with the License.
fc09e0a6af734edbd944dd8082bb51985c233b43Alexis Tsogias#
fc09e0a6af734edbd944dd8082bb51985c233b43Alexis Tsogias# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
7ea4e81c5409e0ed5d9879e370ac3d7457b5a37eAlexis Tsogias# or http://www.opensolaris.org/os/licensing.
8bdf8ddb76255ac9d0c508654bccb4728b0e43f7Jonathan von Schroeder# See the License for the specific language governing permissions
990d9f14e81ad0ffb0fbec4224725b631f5fae27Jonathan von Schroeder# and limitations under the License.
990d9f14e81ad0ffb0fbec4224725b631f5fae27Jonathan von Schroeder#
990d9f14e81ad0ffb0fbec4224725b631f5fae27Jonathan von Schroeder# When distributing Covered Code, include this CDDL HEADER in each
990d9f14e81ad0ffb0fbec4224725b631f5fae27Jonathan von Schroeder# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
8bdf8ddb76255ac9d0c508654bccb4728b0e43f7Jonathan von Schroeder# If applicable, add the following below this CDDL HEADER, with the
7ea4e81c5409e0ed5d9879e370ac3d7457b5a37eAlexis Tsogias# fields enclosed by brackets "[]" replaced with your own identifying
7ea4e81c5409e0ed5d9879e370ac3d7457b5a37eAlexis Tsogias# information: Portions Copyright [yyyy] [name of copyright owner]
409eb8adf8c7ee0609aef256b67f5dfad2fb6386Alexis Tsogias#
7ea4e81c5409e0ed5d9879e370ac3d7457b5a37eAlexis Tsogias# CDDL HEADER END
7ea4e81c5409e0ed5d9879e370ac3d7457b5a37eAlexis Tsogias#
409eb8adf8c7ee0609aef256b67f5dfad2fb6386Alexis Tsogias#
409eb8adf8c7ee0609aef256b67f5dfad2fb6386Alexis Tsogias# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
409eb8adf8c7ee0609aef256b67f5dfad2fb6386Alexis Tsogias# Use is subject to license terms.
7ea4e81c5409e0ed5d9879e370ac3d7457b5a37eAlexis Tsogias#
87d946b3c13ffd7f6391aa796e786c2b31b122b1Jonathan von Schroeder# ident "%Z%%M% %I% %E% SMI"
8fb127028cb7dd361e348a3252e33487f73428bcJonathan von Schroeder
7ea4e81c5409e0ed5d9879e370ac3d7457b5a37eAlexis Tsogiasif [ `/sbin/zonename` != "global" ]; then
4cea468e955597a7069faba3f43f27e913f2b651Alexis Tsogias exit 0
fc09e0a6af734edbd944dd8082bb51985c233b43Alexis Tsogiasfi
4cea468e955597a7069faba3f43f27e913f2b651Alexis Tsogias
87d946b3c13ffd7f6391aa796e786c2b31b122b1Jonathan von Schroederv1=`svcprop -p system/reconfigure system/svc/restarter:default`
87d946b3c13ffd7f6391aa796e786c2b31b122b1Jonathan von Schroederif [ "$v1" = "true" -o -f /etc/.UNCONFIGURED ]; then
87d946b3c13ffd7f6391aa796e786c2b31b122b1Jonathan von Schroeder /sbin/dladm init-link -t > /dev/msglog 2>&1
87d946b3c13ffd7f6391aa796e786c2b31b122b1Jonathan von Schroederfi
87d946b3c13ffd7f6391aa796e786c2b31b122b1Jonathan von Schroeder/sbin/dladm up-link
87d946b3c13ffd7f6391aa796e786c2b31b122b1Jonathan von Schroeder