Skip to content

Instantly share code, notes, and snippets.

@broskees
broskees / streambian
Created August 17, 2024 18:30
Streambian boot command
#!/usr/bin/bash
# Check if gum is installed, if not, install it
if ! command -v gum &> /dev/null; then
echo "gum could not be found, installing..."
sudo mkdir -p /etc/apt/keyrings
curl -fsSL https://repo.charm.sh/apt/gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/charm.gpg
echo "deb [signed-by=/etc/apt/keyrings/charm.gpg] https://repo.charm.sh/apt/ * *" | sudo tee /etc/apt/sources.list.d/charm.list
sudo apt update && sudo apt install gum
fi