From 6b926485f16549a064ad3f1e68df208076cebb52 Mon Sep 17 00:00:00 2001 From: LER0ever Date: Mon, 24 Apr 2017 13:49:34 -0500 Subject: [PATCH] OS: add Chrome OS crouton support --- neofetch | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/neofetch b/neofetch index baef8e4c..e18db77f 100755 --- a/neofetch +++ b/neofetch @@ -63,6 +63,13 @@ get_distro() { *) distro="$(lsb_release -sd) on Windows 10" ;; esac + elif [[ "$(< /proc/version)" == *"cros"* || -f "/dev/cros_ec" ]]; then + case "$distro_shorthand" in + "on") distro="$(lsb_release -sir) [Chrome OS]" ;; + "tiny") distro="Chrome OS" ;; + *) distro="$(lsb_release -sd) on Chrome OS" ;; + esac + elif [[ -f "/etc/GoboLinuxVersion" ]]; then case "$distro_shorthand" in "on" | "tiny") distro="GoboLinux" ;;