postinstall revision 8a57cef6afbd3163c64efedaa20cbfab2c46b9cd
61N/A# The contents of this file are subject to the terms of the 61N/A# Common Development and Distribution License (the "License"). 61N/A# You may not use this file except in compliance with the License. 61N/A# See the License for the specific language governing permissions 61N/A# and limitations under the License. 61N/A# When distributing Covered Code, include this CDDL HEADER in each 61N/A# If applicable, add the following below this CDDL HEADER, with the 61N/A# fields enclosed by brackets "[]" replaced with your own identifying 61N/A# information: Portions Copyright [yyyy] [name of copyright owner] 61N/A# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 75N/A# Use is subject to license terms. 844N/A# Function: check_add_drv() 1273N/A# This function will check if add_drv has been executed. 61N/A# If not simply calls add_drv. Otherwise adds entries to 61N/A# driver_aliases, driver_classes and minor_perm if necessary. 61N/A# The syntax of this function is the same as add_drv. 61N/A b) if [ "${OPTARG}" != "/" ]; then 61N/A # modify the sytem files and touch 61N/A # /reconfigure for reconfigure reboot 61N/A \?) echo "check_add_drv(): Unknown option $opt" 61N/A # Make sure add_drv has not been previously executed 61N/A # before attempting to add the driver 61N/A echo "Failed add_drv ${DRIVER}!\n" >&2 # Add driver entry if necessary if [ -n "${ALIAS}" ]; then