Vara working on mint; shell for testing on pi

Setup Script sudo keepalive for Mint installs
This commit is contained in:
tb14
2022-11-07 00:07:36 -06:00
parent 83b1e37714
commit 17dc294d4d
4 changed files with 33 additions and 5 deletions
+27 -2
View File
@@ -1,9 +1,9 @@
#!/bin/bash
################################################################################
################################################################################
######################## AmRRON Setup Script v0.7.4.3 ########################
######################## AmRRON Setup Script v0.7.4.4 ########################
######################## Created by TB-14 ########################
######################## 05 NOV 22 ########################
######################## 06 NOV 22 ########################
################################################################################
################################################################################
#
@@ -49,6 +49,31 @@
################################################################################
################################################################################
################################################################################
# Ask for the administrator password upfront
clear;echo
echo "###########################################"
echo "###########################################"
echo "╔═╗╔╦╗╦═╗╦═╗╔═╗╔╗╔ ╔═╗╔═╗╦═╗╔═╗╔═╗";
echo "╠═╣║║║╠╦╝╠╦╝║ ║║║║ ║ ║ ║╠╦╝╠═╝╚═╗";
echo "╩ ╩╩ ╩╩╚═╩╚═╚═╝╝╚╝ ╚═╝╚═╝╩╚═╩ ╚═╝";
echo "###########################################"
echo "###########################################"
if $(sudo -n true); then
return;
else
echo "You will be prompted for your sudo password"
echo "below in order to install vara dependencies."
echo "###########################################"
echo "###########################################"
sudo -v
# Keep-alive: update existing `sudo` time stamp until script has finished
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
fi
# Find out if we have yad and install if not
echo "Yad is used to create the interactive menus this program uses."
echo "If yad is not installed, we will attempt to install it now."