#!/usr/sbin/sh # # Copyright (c) 2006, 2011, Oracle and/or its affiliates. All rights reserved. # . /lib/svc/share/smf_include.sh . /lib/svc/share/fs_include.sh UPDATEFILE=$SMF_SYSVOL_FS/boot_archive_safefile_update smf_assert_globalzone # on x86 get rid of transient reboot entry in the GRUB menu # if [ `uname -p` = "i386" ]; then if [ -f /stubboot/boot/grub/menu.lst ]; then /usr/sbin/bootadm -m update_temp -R /stubboot else /usr/sbin/bootadm -m update_temp fi fi if [ -f $UPDATEFILE ] || [ -f /reconfigure ]; then /usr/sbin/rtc -c > /dev/null 2>&1 /usr/sbin/bootadm update-archive rm -f $UPDATEFILE fi exit $SMF_EXIT_OK