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*5648Ssetje# Copyright 2007 Sun Microsystems, Inc. All rights reserved. 242334Ssetje# Use is subject to license terms. 252334Ssetje# 262334Ssetje# ident "%Z%%M% %I% %E% SMI" 272334Ssetje 282334Ssetje. /lib/svc/share/smf_include.sh 292334Ssetje. /lib/svc/share/fs_include.sh 302334Ssetje 312334SsetjeUPDATEFILE=/etc/svc/volatile/boot_archive_needs_update 322334Ssetje 332334Ssetjesmf_is_globalzone || exit $SMF_EXIT_OK 342334Ssetje 35*5648Ssetje# on x86 get rid of transient reboot entry in the GRUB menu 362334Ssetje# 37*5648Ssetjeif [ `uname -p` = "i386" ]; then 38*5648Ssetje if [ -f /stubboot/boot/grub/menu.lst ]; then 39*5648Ssetje /sbin/bootadm -m update_temp -R /stubboot 40*5648Ssetje else 41*5648Ssetje /sbin/bootadm -m update_temp 42*5648Ssetje fi 432334Ssetjefi 442334Ssetje 452334Ssetjeif [ -f $UPDATEFILE ] || [ -f /reconfigure ]; then 462334Ssetje /usr/sbin/rtc -c > /dev/null 2>&1 472334Ssetje /sbin/bootadm update-archive 482334Ssetje rm -f $UPDATEFILE 492334Ssetjefi 502334Ssetje 512334Ssetjeexit $SMF_EXIT_OK 52