devices-local (789:b348f31ed315) | devices-local (1573:7338e65f2666) |
---|---|
1#!/sbin/sh 2# 3# CDDL HEADER START 4# 5# The contents of this file are subject to the terms of the | 1#!/sbin/sh 2# 3# CDDL HEADER START 4# 5# The contents of this file are subject to the terms of the |
6# Common Development and Distribution License, Version 1.0 only 7# (the "License"). You may not use this file except in compliance 8# with the License. | 6# Common Development and Distribution License (the "License"). 7# You may not use this file except in compliance with the License. |
9# 10# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 11# or http://www.opensolaris.org/os/licensing. 12# See the License for the specific language governing permissions 13# and limitations under the License. 14# 15# When distributing Covered Code, include this CDDL HEADER in each 16# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 17# If applicable, add the following below this CDDL HEADER, with the 18# fields enclosed by brackets "[]" replaced with your own identifying 19# information: Portions Copyright [yyyy] [name of copyright owner] 20# 21# CDDL HEADER END 22# 23# | 8# 9# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10# or http://www.opensolaris.org/os/licensing. 11# See the License for the specific language governing permissions 12# and limitations under the License. 13# 14# When distributing Covered Code, include this CDDL HEADER in each 15# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16# If applicable, add the following below this CDDL HEADER, with the 17# fields enclosed by brackets "[]" replaced with your own identifying 18# information: Portions Copyright [yyyy] [name of copyright owner] 19# 20# CDDL HEADER END 21# 22# |
24# Copyright 2005 Sun Microsystems, Inc. All rights reserved. | 23# Copyright 2006 Sun Microsystems, Inc. All rights reserved. |
25# Use is subject to license terms. 26# 27# Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T. 28# All rights reserved. 29# 30# 31# ident "%Z%%M% %I% %E% SMI" 32 33# Initiate the device reconfiguration process in case we need some 34# device links established so that we can successfully perform our 35# remaining standard mounts. 36 | 24# Use is subject to license terms. 25# 26# Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T. 27# All rights reserved. 28# 29# 30# ident "%Z%%M% %I% %E% SMI" 31 32# Initiate the device reconfiguration process in case we need some 33# device links established so that we can successfully perform our 34# remaining standard mounts. 35 |
37if [ `/sbin/zonename` != "global" ]; then 38 exit 0 39fi 40 | |
41. /lib/svc/share/smf_include.sh 42 | 36. /lib/svc/share/smf_include.sh 37 |
38smf_is_globalzone || exit $SMF_EXIT_OK 39 |
|
43svcprop -q -p system/reconfigure system/svc/restarter:default 44if [ $? -eq 0 ]; then 45 echo 'Configuring devices.' > /dev/msglog 2>&1 46 /usr/sbin/devfsadm >/dev/msglog 2>&1 47 if [ -x /usr/ucb/ucblinks -a -f /usr/ucblib/ucblinks.awk ]; then 48 /usr/ucb/ucblinks >/dev/null 2>&1 49 fi 50 --- 23 unchanged lines hidden (view full) --- 74 fi 75fi 76 77# Create any zvol devices 78if [ -x /usr/sbin/zfs ]; then 79 /usr/sbin/zfs volinit || exit $SMF_EXIT_ERR_FATAL 80fi 81 | 40svcprop -q -p system/reconfigure system/svc/restarter:default 41if [ $? -eq 0 ]; then 42 echo 'Configuring devices.' > /dev/msglog 2>&1 43 /usr/sbin/devfsadm >/dev/msglog 2>&1 44 if [ -x /usr/ucb/ucblinks -a -f /usr/ucblib/ucblinks.awk ]; then 45 /usr/ucb/ucblinks >/dev/null 2>&1 46 fi 47 --- 23 unchanged lines hidden (view full) --- 71 fi 72fi 73 74# Create any zvol devices 75if [ -x /usr/sbin/zfs ]; then 76 /usr/sbin/zfs volinit || exit $SMF_EXIT_ERR_FATAL 77fi 78 |
82exit 0 | 79exit $SMF_EXIT_OK |