commit
795ae79b92
4 changed files with 17 additions and 13 deletions
2
PRbL
2
PRbL
|
|
@ -1 +1 @@
|
|||
Subproject commit 6cddac497d6977e969c2fc5e8def0b6f19fb590f
|
||||
Subproject commit 396430c539486520f444fa3c6afb89e91c0dbbc8
|
||||
|
|
@ -36,10 +36,14 @@ sys_packages=(
|
|||
curl
|
||||
python3
|
||||
python3-pip
|
||||
cmake
|
||||
libgmp3-dev
|
||||
libgtk-3-dev
|
||||
)
|
||||
|
||||
pip_packages=(
|
||||
pyparsing
|
||||
pyparsing==3.0.9
|
||||
gitpython
|
||||
)
|
||||
|
||||
repo_packages=(
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
###################################################################
|
||||
|
||||
# initial vars
|
||||
VERSION=2.3.4
|
||||
VERSION=2.3.5
|
||||
scripttitle="Pyr0ball's Reductive Bash Library Installer - v$VERSION"
|
||||
|
||||
# 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
|
||||
bins_missing=()
|
||||
backupFiles=()
|
||||
backup_files=()
|
||||
installed_files=()
|
||||
installed_dirs=()
|
||||
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
###############################################################
|
||||
|
||||
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
|
||||
# TODO: Add alternative handling for other environments
|
||||
|
|
@ -178,7 +178,7 @@ fi
|
|||
# TODO: optimize this to run after time delay using timestamp in settings
|
||||
set_spinner spinner19
|
||||
#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
|
||||
mem_usage=$(free -m | grep Mem | awk '{print $3"M/"$2"M"}')
|
||||
|
|
@ -246,7 +246,7 @@ fi
|
|||
# Check for release upgrade
|
||||
if [ -x /usr/lib/ubuntu-release-upgrader/release-upgrade-motd ]; 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
|
||||
if [ "$(lsb_release -sd | cut -d ' ' -f4)" = "(development" ]; then
|
||||
|
|
@ -257,7 +257,7 @@ fi
|
|||
|
||||
# Check for fsck message
|
||||
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
|
||||
|
||||
################################
|
||||
|
|
@ -324,10 +324,10 @@ boxline ""
|
|||
boxline "${bld}${unl}Location:${dfl} ${grn}${unl}$location${dfl}"
|
||||
boxline ""
|
||||
# Echo out network arrays
|
||||
for((i=0; i<"${#adapters[@]}"; i++ )); do
|
||||
for ((i=0; i<"${#adapters[@]}"; i++ )); do
|
||||
if [[ $show_disconnected != true ]] ; 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
|
||||
else
|
||||
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 " ${unl}Disk Info:${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
|
||||
boxline " $(printf '|%-4s\t%-4s\t%-4s\t%-4s\n' ${usages[$i]} ${freespaces[$i]} ${mounts[$i]} ${logicals[$i]})"
|
||||
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]})"
|
||||
done
|
||||
boxline ""
|
||||
if [[ "$need_updates" == "true" ]] ; then
|
||||
|
|
@ -355,6 +355,6 @@ if [[ "$need_updates" == "true" ]] ; then
|
|||
boxline " ${release_upgrade}"
|
||||
fi
|
||||
if [ -z "${fsck_needed}" ] || [ -z "${reboot_required}" ] ; then
|
||||
boxline " ${fsck_needed}${reboot_required}"
|
||||
boxline " ${fsck_needed} ${reboot_required} "
|
||||
fi
|
||||
boxbottom
|
||||
|
|
|
|||
Loading…
Reference in a new issue