2023-06-05 21:39:47 -07:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
set -o nounset
|
|
|
|
|
2023-06-17 13:11:50 -07:00
|
|
|
ID=(curl ifconfig.me)
|
2023-06-06 22:22:20 -07:00
|
|
|
|
2023-06-17 13:11:50 -07:00
|
|
|
SCRIPT=(curl "https://git.sovransystems.com/Sovran_Systems/Software/raw/branch/main/Sovran_SystemsOS_Reseter/Reseter_Intro.md")
|
2023-06-17 11:46:06 -07:00
|
|
|
|
2023-06-17 13:11:50 -07:00
|
|
|
zenity --progress --no-cancel --pulsate --auto-close --title="Sovran_SystemsOS_Reseter" --text="Please Wait..." | ssh -i /home/free/.ssh/factory_login root@${ID} 'bash "${SCRIPT}"'
|
2023-06-05 21:39:47 -07:00
|
|
|
|
2023-06-17 11:46:06 -07:00
|
|
|
if [[ $? != 0 ]]; then
|
2023-06-05 21:39:47 -07:00
|
|
|
|
2023-06-09 15:16:26 -07:00
|
|
|
zenity --error \
|
|
|
|
--ellipsize \
|
|
|
|
--no-wrap \
|
|
|
|
--title="Sovran_SystemsOS_Reseter" \
|
2023-06-17 13:11:50 -07:00
|
|
|
--text="Could Not Start"
|
2023-06-06 22:22:20 -07:00
|
|
|
|
2023-06-17 13:11:50 -07:00
|
|
|
exit 1
|
2023-06-17 07:44:17 -07:00
|
|
|
fi
|
|
|
|
|
2023-06-17 13:11:50 -07:00
|
|
|
exit 0
|