This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # ============================================================================== | |
| # SCRIPT DE ATUALIZAÇÃO - ADICIONA SUPORTE A CONTROLE GPIO | |
| # ============================================================================== | |
| # Check if script is run as root | |
| if [ "$EUID" -ne 0 ]; then | |
| echo "ERRO: Por favor, execute como root (sudo bash update_gpio_control.sh)" | |
| exit 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Script de correção para câmera USB | |
| echo "=== Atualizando para suporte a câmera USB ===" | |
| # 1. Instalar ffmpeg se necessário | |
| if ! command -v ffmpeg &> /dev/null; then | |
| echo "Instalando ffmpeg..." | |
| sudo apt-get update -qq | |
| sudo apt-get install -y ffmpeg |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # ============================================================================== | |
| # SCRIPT DE INSTALAÇÃO REMOTA PLUSHIE (RASPBERRY PI 5) | |
| # ============================================================================== | |
| # Check if script is run as root | |
| if [ "$EUID" -ne 0 ]; then | |
| echo "ERRO: Por favor, execute como root (sudo ./setup_remote_machine.sh <TOKEN> <MACHINE_ID>)" | |
| exit 1 |