#!/bin/sh # /opt/bootlocal.sh - run as root at the end of boot (called by tc-config). # Everything needed is already inside core.gz: no network, no tce-load. # do what tce-load does after it has mounted an extension ldconfig 2> /dev/null for f in /usr/local/tce.installed/*; do [ -x "$f" ] && "$f" done # passwords (add this line if only key login is not working) # echo "tc:tc" | chpasswd # ssh files for user tc, staged in /opt/ssh by build_core.sh if [ -d /opt/ssh ]; then rm -rf /home/tc/.ssh cp -a /opt/ssh /home/tc/.ssh chown -R tc:staff /home/tc/.ssh chmod 700 /home/tc/.ssh chmod -R go-rwx /home/tc/.ssh fi /usr/local/etc/init.d/openssh start # marker so that you can see on the box that this script ran echo "bootlocal.sh finished $(date)" > /tmp/bootlocal.log