#!/bin/sh

/opt/sbin/ldconfig > /dev/null 2>&1

if ! grep -q "CARGO_HOME" /opt/etc/profile; then
  echo -e "\n# set env CARGO_HOME" >> /opt/etc/profile
  echo 'export CARGO_HOME="/opt/share/cargo"' >> /opt/etc/profile
fi

if ! grep -q "TMPDIR" /opt/etc/profile; then
  echo -e "\n# set env TMPDIR" >> /opt/etc/profile
  echo 'export TMPDIR="/opt/tmp"' >> /opt/etc/profile
fi
