tWorks without lsb_release - scripts - various script and utils
(HTM) git clone git://z3bra.org/scripts
(DIR) Log
(DIR) Files
(DIR) Refs
---
(DIR) commit 5bb43e8965716309cb1b8794157f3f3202938992
(DIR) parent fda86c5c609da9d258561d6406e477c0d1fde16e
(HTM) Author: Willy Goiffon <w.goiffon@gmail.com>
Date: Tue, 1 Oct 2013 08:32:01 +0200
Works without lsb_release
Diffstat:
M info.sh | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
(DIR) diff --git a/info.sh b/info.sh
t@@ -24,7 +24,8 @@ f2=$'\e[0;37m'
kernel=$(uname -rmo)
cpuspe=$(grep 'model name' /proc/cpuinfo| sed 1q|sed 's/^.*:\ *//')
-system=$(lsb_release -d | sed 's/^.*:\s*//')
+#system=$(lsb_release -d | sed 's/^.*:\s*//')
+system=$(cat /etc/issue|cut -d\\ -f1)
if [ -n "$DISPLAY" ]; then
wmname=$(xprop -root WM_NAME|cut -d\" -f2)