#!/bin/sh

TCHOME=`cat /etc/sysconfig/tcuser`

[ -f /etc/skel/.bashrc ] || cp -p /usr/local/share/bash/.bashrc /etc/skel/

[ -d /usr/local/etc ] || mkdir -p /usr/local/etc

[ -e /bin/bash ] || ln -s /usr/local/bin/bash /bin/bash 

[ -f /root/.bashrc ] || busybox cp -p /usr/local/share/bash/.bashrc /root/.bashrc 

[ -f /usr/local/etc/bashrc ] || cp -p /usr/local/share/bash/bashrc /usr/local/etc/

[ -f /home/"$TCHOME"/.bashrc ] || busybox cp -p /usr/local/share/bash/.bashrc /home/"$TCHOME"/.bashrc  
chown tc:staff /home/"$TCHOME"/.bashrc 


