update_chrootscripts () { rm -f $BROOT_BUILDROOT_PATH/root/bin/*.sh 2>&1 > /dev/null rm -rf $BROOT_BUILDROOT_PATH/root/bin/packages cp -r ./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" }