logadm-upgrade revision f6e214c7418f43af38bd8c3a557e3d0a1d311cfa
0N/A# The contents of this file are subject to the terms of the 0N/A# Common Development and Distribution License (the "License"). 2362N/A# You may not use this file except in compliance with the License. 0N/A# See the License for the specific language governing permissions 0N/A# and limitations under the License. 0N/A# When distributing Covered Code, include this CDDL HEADER in each 0N/A# If applicable, add the following below this CDDL HEADER, with the 0N/A# fields enclosed by brackets "[]" replaced with your own identifying 0N/A# information: Portions Copyright [yyyy] [name of copyright owner] 2362N/A# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. 0N/A# It is temporary in the sense that logadm(1M) should have its configuration 0N/A# migrated to SMF in the future. 0N/A# Display error message and exits with error code 0N/A# right ownership and permissions. 4138N/A # If it is not a file, we skip it. 4138N/A # We ignore files that are not owned by root, group sys 4138N/A # and have permissions different than 444 4138N/A if [
"${perm}" !=
"-r--r--r-- root:sys" ];
then 4138N/A echo " expected -r--r--r-- root:sys but got ${perm}" 0N/A # Discard comments (lines starting with #) 0N/A if [ $? !=
0 ];
then # only happens if awk(1) fails 0N/A # if ${sig} is null but the previous command succeeded, we skip