|
|
| |
describe_update_options() { | describe_update_options() { |
echo "makelinks : Specify \"makelinks\" to force updating of links" | echo "makelinks : Specify \"makelinks\" to force updating of links" |
|
echo "--no-ldconfig : Do not run ldconfig" |
} | } |
| |
do_update() { | do_update() { |
|
|
touch ${ROOT}/etc/profile.env | touch ${ROOT}/etc/profile.env |
fi | fi |
| |
|
local mlinks noldconfig |
|
while [[ ${1} ]]; do |
|
case ${1} in |
|
makelinks) mlinks=1 ;; |
|
--no-ldconfig) noldconfig=1 ;; |
|
*) die -q "Unknown parameter ${1}" ;; |
|
esac |
|
shift |
|
done |
|
|
# Create configuration files | # Create configuration files |
create_profile_env | create_profile_env |
create_ld_so_conf |
if [[ -z "${noldconfig}" ]]; then |
[[ -e ${ROOT}/usr/sbin/prelink ]] && create_prelink_conf |
create_ld_so_conf |
makelinks=$( ( need_links || [[ ${1} == makelinks ]] ) && echo "-X" ) |
[[ -e ${ROOT}/usr/sbin/prelink ]] && create_prelink_conf |
update_ldcache ${makelinks} |
makelinks=$( ( need_links || [[ "${mlinks}" ]] ) && echo "-X" ) |
|
update_ldcache ${makelinks} |
|
fi |
| |
# fix up ${ENVPROFILE} | # fix up ${ENVPROFILE} |
cp ${ENVPROFILE} ${ENVPROFILE/.env/.csh} | cp ${ENVPROFILE} ${ENVPROFILE/.env/.csh} |