12334Ssetje#!/sbin/sh 22334Ssetje# 32334Ssetje# CDDL HEADER START 42334Ssetje# 52334Ssetje# The contents of this file are subject to the terms of the 62334Ssetje# Common Development and Distribution License (the "License"). 72334Ssetje# You may not use this file except in compliance with the License. 82334Ssetje# 92334Ssetje# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 102334Ssetje# or http://www.opensolaris.org/os/licensing. 112334Ssetje# See the License for the specific language governing permissions 122334Ssetje# and limitations under the License. 132334Ssetje# 142334Ssetje# When distributing Covered Code, include this CDDL HEADER in each 152334Ssetje# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 162334Ssetje# If applicable, add the following below this CDDL HEADER, with the 172334Ssetje# fields enclosed by brackets "[]" replaced with your own identifying 182334Ssetje# information: Portions Copyright [yyyy] [name of copyright owner] 192334Ssetje# 202334Ssetje# CDDL HEADER END 212334Ssetje# 222334Ssetje# 23*11906SGangadhar.M@Sun.COM# Copyright 2010 Sun Microsystems, Inc. All rights reserved. 242334Ssetje# Use is subject to license terms. 252334Ssetje# 262334Ssetje 272334Ssetje. /lib/svc/share/smf_include.sh 282334Ssetje. /lib/svc/share/fs_include.sh 292334Ssetje 30*11906SGangadhar.M@Sun.COMUPDATEFILE=/etc/svc/volatile/boot_archive_safefile_update 312334Ssetje 322334Ssetjesmf_is_globalzone || exit $SMF_EXIT_OK 332334Ssetje 345648Ssetje# on x86 get rid of transient reboot entry in the GRUB menu 352334Ssetje# 365648Ssetjeif [ `uname -p` = "i386" ]; then 375648Ssetje if [ -f /stubboot/boot/grub/menu.lst ]; then 385648Ssetje /sbin/bootadm -m update_temp -R /stubboot 395648Ssetje else 405648Ssetje /sbin/bootadm -m update_temp 415648Ssetje fi 422334Ssetjefi 432334Ssetje 442334Ssetjeif [ -f $UPDATEFILE ] || [ -f /reconfigure ]; then 452334Ssetje /usr/sbin/rtc -c > /dev/null 2>&1 462334Ssetje /sbin/bootadm update-archive 472334Ssetje rm -f $UPDATEFILE 482334Ssetjefi 492334Ssetje 502334Ssetjeexit $SMF_EXIT_OK 51