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."
+2 -2
View File
@@ -170,12 +170,12 @@ fi
function confirm_os() {
if [[ $OSCN =~ buster|bullseye|una|vanessa ]]; then
if [[ $OSCN =~ una|vanessa ]]; then
echo "Continuing with install"
else
yad --image=$DIR/images/corps-icon.png --center \
--title "Not Supported OS" \
--text "::: Exiting due to unsupported OS. This script has only been tested on Mint 21 at this time." ${r} ${c}
--text "::: Exiting due to unsupported OS. This script has only been tested on Mint 20.3 and 21 at this time." ${r} ${c}
exit 1
fi
}
+3
View File
@@ -1,3 +1,6 @@
# Version 0.7.4.4
- Added sudo keepalive loop for mint installs
# Version 0.7.4.3
- Testing g++ dependency for hamlib
- Removed auto removal of source directories.
+1 -1
View File
@@ -1,6 +1,6 @@
# Version 0.2
- testing sudo keepalive and Mint 20.3 support
- basic shell for pi setup
- basic shell for pi setup - Not working on Buster, testing Bullseye soon.
# Version 0.1
- initial testing for Vara install on Mint 21.