fixed settings location syntax
This commit is contained in:
parent
fbb7b0b468
commit
259a7e87cb
1 changed files with 7 additions and 4 deletions
|
|
@ -9,7 +9,7 @@
|
||||||
# Written by Alan "pyr0ball" Weinstock #
|
# Written by Alan "pyr0ball" Weinstock #
|
||||||
###############################################################
|
###############################################################
|
||||||
|
|
||||||
quickinfo_version=2.0.0
|
quickinfo_version=2.0.1
|
||||||
prbl_functons_req_ver=1.1.3
|
prbl_functons_req_ver=1.1.3
|
||||||
|
|
||||||
# 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
|
||||||
|
|
@ -55,8 +55,10 @@ else
|
||||||
echo -e "PRbL functions not defined. Check ~/.bashrc"
|
echo -e "PRbL functions not defined. Check ~/.bashrc"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
settinsfile=$(echo "$rundir_abolute/${0##*/}" | cut -d '\.' -f1)
|
scriptname="${0##*/}"
|
||||||
settinsfile="$settingfule.settings"
|
rundir_absolute=$(cd `dirname $0` && pwd)
|
||||||
|
settingsfile=$(echo "$rundir_absolute/$scriptname" | sed -E 's/(.*)bashrc/\1settings/')
|
||||||
|
|
||||||
source $settingsfile
|
source $settingsfile
|
||||||
|
|
||||||
# check PRbL functions version
|
# check PRbL functions version
|
||||||
|
|
@ -150,6 +152,7 @@ if [ "$any_missing" == "true" ]
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Gets public IP address using opendns
|
# Gets public IP address using opendns
|
||||||
|
# TODO: optimize this to run after time delay using timestamp in settings
|
||||||
wan_ip=$(wget -qO- http://ipecho.net/plain | xargs echo)
|
wan_ip=$(wget -qO- http://ipecho.net/plain | xargs echo)
|
||||||
|
|
||||||
# Checks memory usage
|
# Checks memory usage
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue