ibd-post-upgrade revision 1cfa752f4e24c34133009b0f6c139127a5c461de
cfb1587eb9a6dc6d1d36ea0344e1b20068b81e88Evan Hunt# CDDL HEADER START
cfb1587eb9a6dc6d1d36ea0344e1b20068b81e88Evan Hunt# The contents of this file are subject to the terms of the
cfb1587eb9a6dc6d1d36ea0344e1b20068b81e88Evan Hunt# Common Development and Distribution License (the "License").
cfb1587eb9a6dc6d1d36ea0344e1b20068b81e88Evan Hunt# You may not use this file except in compliance with the License.
cfb1587eb9a6dc6d1d36ea0344e1b20068b81e88Evan Hunt# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
cfb1587eb9a6dc6d1d36ea0344e1b20068b81e88Evan Hunt# See the License for the specific language governing permissions
cfb1587eb9a6dc6d1d36ea0344e1b20068b81e88Evan Hunt# and limitations under the License.
cfb1587eb9a6dc6d1d36ea0344e1b20068b81e88Evan Hunt# When distributing Covered Code, include this CDDL HEADER in each
cfb1587eb9a6dc6d1d36ea0344e1b20068b81e88Evan Hunt# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
cfb1587eb9a6dc6d1d36ea0344e1b20068b81e88Evan Hunt# If applicable, add the following below this CDDL HEADER, with the
cfb1587eb9a6dc6d1d36ea0344e1b20068b81e88Evan Hunt# fields enclosed by brackets "[]" replaced with your own identifying
cfb1587eb9a6dc6d1d36ea0344e1b20068b81e88Evan Hunt# information: Portions Copyright [yyyy] [name of copyright owner]
1946c596b47b0495ce745fe2fff7da799919b0d2Mark Andrews# CDDL HEADER END
cfb1587eb9a6dc6d1d36ea0344e1b20068b81e88Evan Hunt# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
cfb1587eb9a6dc6d1d36ea0344e1b20068b81e88Evan Hunt# Actual work of ibd upgrade is done in network/physical service.
cfb1587eb9a6dc6d1d36ea0344e1b20068b81e88Evan Hunt# Here we mearly set the property to indicate that the ibd upgrade has been
cfb1587eb9a6dc6d1d36ea0344e1b20068b81e88Evan Hunt# done. Setting of the property can not be done in network/physical service
cfb1587eb9a6dc6d1d36ea0344e1b20068b81e88Evan Hunt# because the file system is read-only at that point.
cfb1587eb9a6dc6d1d36ea0344e1b20068b81e88Evan Hunt upgrade_done=`/bin/svcprop -c -p $PROP $NETPHYS 2> /dev/null`
cfb1587eb9a6dc6d1d36ea0344e1b20068b81e88Evan Hunt /usr/sbin/svccfg -s $NETPHYS addpg ibd system 2> /dev/null