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 | |
| # NOME: linscriptshell.sh | |
| # DESCRIÇÃO: Interface de Terminal (Shell Script Puro) para gerenciamento de pacotes APT no Chrome OS Flex. | |
| # Não requer Zenity. | |
| # --- 1. FUNÇÃO DE VERIFICAÇÃO DE DISTRIBUIÇÃO --- | |
| verificar_distribuicao() { | |
| # Verifica se o sistema usa o gerenciador de pacotes 'apt' (Debian/Ubuntu/ChromeOS Flex) | |
| if [ -f /etc/os-release ]; then | |
| . /etc/os-release |
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 | |
| # --- 1. FUNÇÃO DE VERIFICAÇÃO E INSTALAÇÃO DE ZENITY --- | |
| verificar_e_instalar_zenity() { | |
| if ! command -v zenity &> /dev/null | |
| then | |
| echo "Zenity não encontrado. Tentando instalar..." | |
| echo "Instalando Zenity. Por favor, aguarde e insira sua senha se for solicitada." | |
| sudo apt update > /dev/null 2>&1 |