#!/bin/sh

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

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