* Fixed lsmod calling on systems different from Linux.

* fbterm check now runs only on Linux and if lsmod is available.
* Added OS and OS_RELEASE vars.
* Themes now should also ends with .zsh.
This commit is contained in:
2015-03-01 09:57:58 +05:00
parent cfa309ed3a
commit da3e638cf9
6 changed files with 22 additions and 43 deletions
+13 -2
View File
@@ -1,7 +1,18 @@
# Launch fbterm on TTY login
# But first some pre-checks. nVidia proprietary drivers will not allow
# us to use it, so we should disable this.
# We should not use it on any system except linux.
if [[ "${OS}" != "Linux" ]]; then
return
fi
# We should skip this file if no fbterm is installed.
FBTERM=`whereis fmterm | cut -d ":" -f 2`
if [[ "${FBTERM/fbterm}" == "${FBTERM}" ]]; then
return
fi
# nVidia proprietary drivers will not allow us to use it, so we
# should disable this.
NVIDIA_POWERED=0
lsmod | grep nvidia &> /dev/null