mirror of
https://gitlab.com/amrron/setup-scripts.git
synced 2026-10-17 01:54:00 -04:00
Vara working on mint; shell for testing on pi
Setup Script sudo keepalive for Mint installs
This commit is contained in:
+27
-2
@@ -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."
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -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,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.
|
||||
Reference in New Issue
Block a user