added ability to use auto-cpufreq-installer from any path (#65)

* added ability to use this script from any path
This commit is contained in:
Vadym Stupakov 2020-08-05 19:06:28 +03:00 committed by GitHub
parent d0243806e9
commit e1e09d0629
1 changed files with 4 additions and 0 deletions

View File

@ -3,6 +3,10 @@
# auto-cpufreq-installer:
# auto-cpufreq source code based installer
SCRIPT_PATH=$(readlink -f "$0")
SCRIPT_DIR=$(dirname "${SCRIPT_PATH}")
cd "${SCRIPT_DIR}"
distro="$(lsb_release -is)"
release="$(lsb_release -rs)"
codename="$(lsb_release -cs)"