Update pacsat-run.sh add gui check

master-bh
Alan Johnston 2 months ago committed by GitHub
parent de00467829
commit 92a49408f8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -15,6 +15,23 @@ sudo killall -9 direwolf &>/dev/null
sudo killall -9 aplay &>/dev/null
if [ ! $(systemctl get-default | grep graphical) ]; then
echo "Graphical User Interface not running!"
echo
echo "Do you want to reboot and switch to GUI so you can run the Pacsat Ground Station"
read answer
if [ "$answer" = "y" ] || [ "$answer" = "yes" ]; then
echo "Rebooting!"
sudo raspi-config nonint do_boot_behaviour B4
sudo reboot now
else
echo "You can run the Pacsat Ground Station next time you run the GUI."
exit
fi
fi
#FILE=/home/pi/.pacsatprofile
#if [ ! -f "$FILE" ]; then

Loading…
Cancel
Save

Powered by TurnKey Linux.