10Sstevel@tonic-gate#!/sbin/sh 20Sstevel@tonic-gate# 30Sstevel@tonic-gate# CDDL HEADER START 40Sstevel@tonic-gate# 50Sstevel@tonic-gate# The contents of this file are subject to the terms of the 61573Sdp# Common Development and Distribution License (the "License"). 71573Sdp# You may not use this file except in compliance with the License. 80Sstevel@tonic-gate# 90Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 100Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing. 110Sstevel@tonic-gate# See the License for the specific language governing permissions 120Sstevel@tonic-gate# and limitations under the License. 130Sstevel@tonic-gate# 140Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each 150Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 160Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the 170Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying 180Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner] 190Sstevel@tonic-gate# 200Sstevel@tonic-gate# CDDL HEADER END 210Sstevel@tonic-gate# 220Sstevel@tonic-gate# 2312354SAnders.Persson@Sun.COM# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. 240Sstevel@tonic-gate# 250Sstevel@tonic-gate# Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T. 260Sstevel@tonic-gate# All rights reserved. 270Sstevel@tonic-gate# 280Sstevel@tonic-gate 290Sstevel@tonic-gate# Initiate the device reconfiguration process in case we need some 300Sstevel@tonic-gate# device links established so that we can successfully perform our 310Sstevel@tonic-gate# remaining standard mounts. 320Sstevel@tonic-gate 331573Sdp. /lib/svc/share/smf_include.sh 340Sstevel@tonic-gate 351573Sdpsmf_is_globalzone || exit $SMF_EXIT_OK 36789Sahrens 370Sstevel@tonic-gatesvcprop -q -p system/reconfigure system/svc/restarter:default 380Sstevel@tonic-gateif [ $? -eq 0 ]; then 390Sstevel@tonic-gate echo 'Configuring devices.' > /dev/msglog 2>&1 400Sstevel@tonic-gate /usr/sbin/devfsadm >/dev/msglog 2>&1 410Sstevel@tonic-gate 420Sstevel@tonic-gate # 4312354SAnders.Persson@Sun.COM # Rerun soconfig to configure any sockets that use /dev 4412354SAnders.Persson@Sun.COM # entries that were just created by devfsadm. 450Sstevel@tonic-gate # 46*13055SAnders.Persson@Sun.COM /sbin/soconfig -d /etc/sock2path.d >/dev/null 2>&1 470Sstevel@tonic-gate 480Sstevel@tonic-gate # 490Sstevel@tonic-gate # Update kernel driver.conf cache. 500Sstevel@tonic-gate # 510Sstevel@tonic-gate /usr/sbin/devfsadm -I 520Sstevel@tonic-gatefi 530Sstevel@tonic-gate 540Sstevel@tonic-gate# Establish the default framebuffer name. 550Sstevel@tonic-gate 560Sstevel@tonic-gatefbdev=`/usr/sbin/prtconf -F 2>/dev/null` 570Sstevel@tonic-gate 580Sstevel@tonic-gateif [ $? -eq 0 ]; then 590Sstevel@tonic-gate set -- /devices$fbdev* 600Sstevel@tonic-gate if [ -c $1 ]; then 611948Sjg if [ -h /dev/fb ]; then 621948Sjg fblink=`ls -l /dev/fb | /usr/bin/awk '{ print $11 }'` 631948Sjg 641948Sjg if [ "$1" != "$fblink" ]; then 651948Sjg rm -f /dev/fb 661948Sjg ln -s $1 /dev/fb 671948Sjg fi 681948Sjg else 691948Sjg rm -f /dev/fb 701948Sjg ln -s $1 /dev/fb 711948Sjg fi 721948Sjg fi 730Sstevel@tonic-gatefi 740Sstevel@tonic-gate 751573Sdpexit $SMF_EXIT_OK 76