#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (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
#
#
#
while getopts f name; do
f) follow=1 ;;
esac
done
python -ESc "import os; print os.path.realpath('$1')"
else
python -ESc "import os; print os.readlink('$1')"
fi
}
echo "populating ${dir_file} from ${directory}"
done
if [[ -f ${dir_file} ]] ; then
fi
# new dir file created, replace the original one
chown -f ${owner_group} ${dir_file}
else
# no dir file created (no input files installed)
fi
;;
esac
}
### Begin Here ###
case "$1" in
'start'|'refresh')
if [[ "$1" = 'start' ]]; then
if [[ ! -f "/.SELF-ASSEMBLY-REQUIRED" ]]; then
exit $SMF_EXIT_OK
fi
fi
# refresh texinfo directories
sort -u) ; do
# test the directory is writable
if [[ ! -w /${dir_link} ]]; then
echo $SMF_EXIT_OK
else
fi
done
# remove any unreferenced directories
if [[ ! -L ${path} ]] ; then
echo -n "removing unreferenced texinfo directory: "
echo "${file} ${link}"
fi
done
;;
*)
echo "Usage: $0 (start|refresh)"
exit 1
;;
esac
exit $SMF_EXIT_OK