* 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:
+13
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user