OS: add Chrome OS crouton support
This commit is contained in:
parent
f5e55acc67
commit
6b926485f1
7
neofetch
7
neofetch
|
@ -63,6 +63,13 @@ get_distro() {
|
||||||
*) distro="$(lsb_release -sd) on Windows 10" ;;
|
*) distro="$(lsb_release -sd) on Windows 10" ;;
|
||||||
esac
|
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
|
elif [[ -f "/etc/GoboLinuxVersion" ]]; then
|
||||||
case "$distro_shorthand" in
|
case "$distro_shorthand" in
|
||||||
"on" | "tiny") distro="GoboLinux" ;;
|
"on" | "tiny") distro="GoboLinux" ;;
|
||||||
|
|
Reference in New Issue