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."
|
||||
|
||||
Reference in New Issue
Block a user