rmtmpfiles revision 7c478bd95313f5f23a4c958a745db2134aa03244
#
# CDDL HEADER START
#
# 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
# with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# 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]
#
# CDDL HEADER END
#
#
# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
#ident "%Z%%M% %I% %E% SMI"
# Traditional SunOS 4.x behavior has been to not remove directories in
# the /tmp directory; only simple files were removed. This lead to an
# inconsistency when the tmpfs file system was used (which isn't persistent
# across boots. The following adopts the traditional System V behavior
# of removing everything in /tmp, unless /tmp or any of its subdirectories
# are mount points for another filesystem.
if [ -h /tmp ]; then
# Just remove files under directory if symbolic link
else
fi
}
# Clean up /etc directory
done
# Traditional SunOS 4.x behavior has been to not alter the contents of
# current default behavior. It the traditional System V behavior of
exit 0
# mount points for another filesystem.
# We carefully remove all files except the Ex* files (editor
# temporary files), which expreserve will process later (in
# S80PRESERVE). Of course, it would be simpler to just run
# expreserve before this script, but that doesn't work --
# expreserve requires the name service, which is not available
# until much later.
}
exit 0