Skip to content

Commit

Permalink
Update .bashrc
Browse files Browse the repository at this point in the history
  • Loading branch information
weskerty authored Sep 30, 2024
1 parent 0555d10 commit 1c34c13
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions web/Guias/Utilidades/.bashrc
Original file line number Diff line number Diff line change
@@ -1,2 +1,32 @@
termux-wake-lock

# Colores mensajes
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
NC='\033[0m' # Sin color

echo -e "${YELLOW}Presiona una Tecla para Evitar el Inicio Automatico...${NC}"

timeout=5

while [ $timeout -gt 0 ]; do
echo -ne "${YELLOW}Iniciando en $timeout segundos...\r${NC}"

read -t 1 -n 1 keypress

if [ $? -eq 0 ]; then
echo -e "\n${RED}Inicio Automatico Cancelado.${NC}"

echo -e "${GREEN}Puedes ajustar lo que necesites. Recuerda, que el Bot esta en un Contenedor ArchLinux.${NC}"
echo -e "${GREEN}Para Ingresar Ahi Debes usar el Comando:${NC} ${YELLOW}proot-distro login archlinux${NC} ${GREEN}y luego hacer las Modificaciones al Bot.${NC}"

return 0
fi

timeout=$((timeout - 1))
done

echo -e "\n${GREEN}Iniciando Bot...${NC}"

proot-distro login archlinux -- /bin/bash -c ./update.sh

0 comments on commit 1c34c13

Please sign in to comment.