update_chrootscripts () { rm -f $BROOT_BUILDROOT_PATH/root/bin/*.sh 2>&1 > /dev/null cp ./chroot-scripts/* $BROOT_BUILDROOT_PATH/root/bin/ chmod 700 $BROOT_BUILDROOT_PATH/root/bin/* count=$(ls -1 $BROOT_BUILDROOT_PATH/root/bin/*.sh|wc -l) echo " Reinstalled $count scripts" }