postinstall revision 2eaee53e5b3d4cd48a35cd651c0a8ae149d772c5
# The contents of this file are subject to the terms of the # Common Development and Distribution License, Version 1.0 only # (the "License"). You may not use this file except in compliance # See the License for the specific language governing permissions # and limitations under the License. # When distributing Covered Code, include this CDDL HEADER in each # If applicable, add the following below this CDDL HEADER, with the # fields enclosed by brackets "[]" replaced with your own identifying # information: Portions Copyright [yyyy] [name of copyright owner] #pragma ident "%Z%%M% %I% %E% SMI" # Copyright 2005 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # Update IPsec policy configuration file only if installed if [ ${
platform} !=
"${starcat}" ];
then # remove_ipsecinit_entry sport|dport service apply|permit \ # Note: If an entry exists that uses the same (sport|dport)/service # combination that entry is not removed. This is to prevent # the removal of any custom policies that might have been established. if [ $3 = "permit" ]; then default="{ $1 $2 ulp tcp } $3 { auth_algs $4 }" default="{ $1 $2 ulp tcp } $3 { auth_algs $4 sa $5 }" # Check for a default entry, and remove it # Check the file for an entry that # has a matching (sport|dport)/port pair nawk " BEGIN { RS=\"}\" } # Found a modified entry, just issue a warning echo "Found a policy for $1 $2 that does not match the" \ # Remove all of our default policies echo "NOTICE: One or more of the default IPsec policies for the" echo "Sun Fire 15000 services has been modified. As a result, the" echo "modified policy for those services was not removed. Please" echo "For more information, refer to sckmd(1M) and ipsecconf(1M)."