i.automaster revision 7c478bd95313f5f23a4c958a745db2134aa03244
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder# CDDL HEADER START
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder# The contents of this file are subject to the terms of the
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# Common Development and Distribution License, Version 1.0 only
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# (the "License"). You may not use this file except in compliance
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# with the License.
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
f4a2a20e49f41b2afa657e5e64d9e349c7faa091Christian Maeder# or http://www.opensolaris.org/os/licensing.
f2f9df2e17e70674f0bf426ed1763c973ee4cde0Christian Maeder# See the License for the specific language governing permissions
c9a7e6af169a2adfb92f42331cd578065ed83a2bChristian Maeder# and limitations under the License.
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maeder# When distributing Covered Code, include this CDDL HEADER in each
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maeder# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder# If applicable, add the following below this CDDL HEADER, with the
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder# fields enclosed by brackets "[]" replaced with your own identifying
a1ed34933c266ce85066acb0d7b20c90cb8eb213Christian Maeder# information: Portions Copyright [yyyy] [name of copyright owner]
404166b9366552e9ec5abb87a37c76ec8a815fb7Klaus Luettich# CDDL HEADER END
4d56f2fa72e4aec20eb827c11ed49c8cbb7014bdChristian Maeder#ident "%Z%%M% %I% %E% SMI"
8ef75f1cc0437656bf622cec5ac9e8ea221da8f2Christian Maeder# Copyright 1994-2003 Sun Microsystems, Inc. All rights reserved.
404166b9366552e9ec5abb87a37c76ec8a815fb7Klaus Luettich# Use is subject to license terms.
e593b89bfd4952698dc37feced21cefe869d87a2Christian Maeder sed -e "s%^/net -hosts -nosuid$%/net -hosts -nosuid,nobrowse%" \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder -e "s%^/home auto_home$%/home auto_home -nobrowse%" \
f041c9a6bda23de33a38490e35b831ae18d96b45Christian Maeder grep -s "^[ ]*/net[ \\]" /tmp/am.$$ > /dev/null 2>&1
7cc09dd93962a2155c34d209d1d4cd7d7b838264Christian Maeder if [ $? = 0 ]; then
1aee4aaddde105264c1faf394d88e302c05094ffChristian Maeder # Did we not update the /net entry because it did not
f4a2a20e49f41b2afa657e5e64d9e349c7faa091Christian Maeder if [ $? != 0 ]; then
dcbd32289a7bdf1e6edd06c6ab0698c6a9dbf37aChristian Maeder echo "'/net' entry in ${dest} map was not updated to include '-nobrowse' option." >> ${CLEANUP_FILE}
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian Maeder grep -s "^[ ]*/home[ \\]" /tmp/am.$$ > /dev/null 2>&1
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian Maeder if [ $? = 0 ]; then
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder # Did we not update the /home entry because it did not
363939beade943a02b31004cea09dec34fa8a6d9Christian Maeder if [ $? != 0 ]; then
a7c27282e71cf4505026645f96d4f5cb8a284e32Christian Maeder echo "'/home' entry in ${dest} map was not updated to include '-nobrowse' option." >> ${CLEANUP_FILE}
6dc9bc98d0854fe2e3dd3bfc4275096a0c28ee1cChristian Maeder if [ ! -f $dest ] ; then
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder if [ $? = 0 ]; then
c0c2380bced8159ff0297ece14eba948bd236471Christian Maeder # Remove /xfn entry
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder # Remove /xfn directory if not in use