Skip to content

Instantly share code, notes, and snippets.

View theofficialgman's full-sized avatar

theofficialgman

  • 13:17 (UTC -04:00)
View GitHub Profile
@theofficialgman
theofficialgman / reboot-to-payload.sh
Last active March 24, 2023 18:07
Nintendo Switch Linux reboot to payload YAD GUI
#!/bin/bash
error() { #red text and exit 1
echo -e "\e[91m$1\e[0m" 1>&2
yad --class Reboot-To-Payload --name "Reboot To Payload" --no-escape --fixed --show-uri --center --image "dialog-error" --borders="20" --title "ERROR" \
--text="$1" --wrap \
--window-icon=/usr/share/nvpmodel_indicator/nv_logo.svg \
--button="Exit":0
exit 1