Merge pull request #4 from pyr0ball/develop

Develop
This commit is contained in:
Alan Weinstock 2023-08-11 01:37:12 -07:00 committed by GitHub
commit 795ae79b92
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 17 additions and 13 deletions

2
PRbL

@ -1 +1 @@
Subproject commit 6cddac497d6977e969c2fc5e8def0b6f19fb590f Subproject commit 396430c539486520f444fa3c6afb89e91c0dbbc8

View file

@ -36,10 +36,14 @@ sys_packages=(
curl curl
python3 python3
python3-pip python3-pip
cmake
libgmp3-dev
libgtk-3-dev
) )
pip_packages=( pip_packages=(
pyparsing pyparsing==3.0.9
gitpython
) )
repo_packages=( repo_packages=(

View file

@ -4,7 +4,7 @@
################################################################### ###################################################################
# initial vars # initial vars
VERSION=2.3.4 VERSION=2.3.5
scripttitle="Pyr0ball's Reductive Bash Library Installer - v$VERSION" scripttitle="Pyr0ball's Reductive Bash Library Installer - v$VERSION"
# Bash expansions to get the name and location of this script when run # Bash expansions to get the name and location of this script when run
@ -56,7 +56,7 @@ globalinstalldir="/usr/share/prbl"
# Initialize arrays for file and dependency management # Initialize arrays for file and dependency management
bins_missing=() bins_missing=()
backupFiles=() backup_files=()
installed_files=() installed_files=()
installed_dirs=() installed_dirs=()

View file

@ -10,7 +10,7 @@
############################################################### ###############################################################
quickinfo_version=2.1.0 quickinfo_version=2.1.0
prbl_functons_req_ver=1.1.3 prbl_functons_req_ver=1.6.0
# Uses a wide variety of methods to check which distro this is run on # Uses a wide variety of methods to check which distro this is run on
# TODO: Add alternative handling for other environments # TODO: Add alternative handling for other environments
@ -178,7 +178,7 @@ fi
# TODO: optimize this to run after time delay using timestamp in settings # TODO: optimize this to run after time delay using timestamp in settings
set_spinner spinner19 set_spinner spinner19
#spin "eval $(wan_ip=$(wget -qO- http://ipecho.net/plain \| xargs echo ))" #spin "eval $(wan_ip=$(wget -qO- http://ipecho.net/plain \| xargs echo ))"
read -r wan_ip < <(wget -qO- http://ipecho.net/plain \| xargs echo) spin read -r wan_ip < <(wget -qO- https://ident.me/)
# Checks memory usage # Checks memory usage
mem_usage=$(free -m | grep Mem | awk '{print $3"M/"$2"M"}') mem_usage=$(free -m | grep Mem | awk '{print $3"M/"$2"M"}')
@ -246,7 +246,7 @@ fi
# Check for release upgrade # Check for release upgrade
if [ -x /usr/lib/ubuntu-release-upgrader/release-upgrade-motd ]; then if [ -x /usr/lib/ubuntu-release-upgrader/release-upgrade-motd ]; then
if [ -f /var/lib/ubuntu-release-upgrader/release-upgrade-available ] ; then if [ -f /var/lib/ubuntu-release-upgrader/release-upgrade-available ] ; then
release_upgrade=$(cat /var/lib/ubuntu-release-upgrader/release-upgrade-available) release_upgrade="$(cat /var/lib/ubuntu-release-upgrader/release-upgrade-available)"
fi fi
fi fi
if [ "$(lsb_release -sd | cut -d ' ' -f4)" = "(development" ]; then if [ "$(lsb_release -sd | cut -d ' ' -f4)" = "(development" ]; then
@ -257,7 +257,7 @@ fi
# Check for fsck message # Check for fsck message
if [ -x /usr/lib/update-notifier/update-motd-fsck-at-reboot ]; then if [ -x /usr/lib/update-notifier/update-motd-fsck-at-reboot ]; then
fsck_needed=`exec /usr/lib/update-notifier/update-motd-fsck-at-reboot` fsck_needed="$(exec /usr/lib/update-notifier/update-motd-fsck-at-reboot)"
fi fi
################################ ################################
@ -324,10 +324,10 @@ boxline ""
boxline "${bld}${unl}Location:${dfl} ${grn}${unl}$location${dfl}" boxline "${bld}${unl}Location:${dfl} ${grn}${unl}$location${dfl}"
boxline "" boxline ""
# Echo out network arrays # Echo out network arrays
for((i=0; i<"${#adapters[@]}"; i++ )); do for ((i=0; i<"${#adapters[@]}"; i++ )); do
if [[ $show_disconnected != true ]] ; then if [[ $show_disconnected != true ]] ; then
if [[ ${ifups[$i]} == up ]] ; then if [[ ${ifups[$i]} == up ]] ; then
boxline " ${adapters[$i]}: ${cyn}${ips[$i]}${dfl | ${blu}${macs[$i]}${dfl}" boxline " ${adapters[$i]}: ${cyn}${ips[$i]}${dfl} | ${blu}${macs[$i]}${dfl}"
fi fi
else else
boxline " ${adapters[$i]}: ${cyn}${ips[$i]}${dfl} | ${blu}${macs[$i]}${dfl}" boxline " ${adapters[$i]}: ${cyn}${ips[$i]}${dfl} | ${blu}${macs[$i]}${dfl}"
@ -344,8 +344,8 @@ boxline " CPU Temp: ${lbl}${cputemp}${dfl} | Utilization: ${lrd}${cpu_util}%${d
boxline " Memory used/total: ${mem_usage}" boxline " Memory used/total: ${mem_usage}"
boxline " ${unl}Disk Info:${dfl}" boxline " ${unl}Disk Info:${dfl}"
boxline "${unl}$(printf '\t|%-4s\t%-4s\t%-4s\t%-4s\n' Usage Free Mount Volumes)${dfl}" boxline "${unl}$(printf '\t|%-4s\t%-4s\t%-4s\t%-4s\n' Usage Free Mount Volumes)${dfl}"
for((i=0; i<"${#logicals[@]}"; i++ )); do for ((i=0; i<"${#logicals[@]}"; i++ )); do
boxline " $(printf '|%-4s\t%-4s\t%-4s\t%-4s\n' ${usages[$i]} ${freespaces[$i]} ${mounts[$i]} ${logicals[$i]})" boxline " $(printf '|%-4s\t%-4s\t%-4s\t%-4s\n' ${usages[$i]} ${freespaces[$i]} ${mounts[$i]} ${logicals[$i]})"
done done
boxline "" boxline ""
if [[ "$need_updates" == "true" ]] ; then if [[ "$need_updates" == "true" ]] ; then
@ -355,6 +355,6 @@ if [[ "$need_updates" == "true" ]] ; then
boxline " ${release_upgrade}" boxline " ${release_upgrade}"
fi fi
if [ -z "${fsck_needed}" ] || [ -z "${reboot_required}" ] ; then if [ -z "${fsck_needed}" ] || [ -z "${reboot_required}" ] ; then
boxline " ${fsck_needed}${reboot_required}" boxline " ${fsck_needed} ${reboot_required} "
fi fi
boxbottom boxbottom