Merge pull request #701 from LER0ever/master

OS: add Chrome OS crouton support
This commit is contained in:
Dylan Araps 2017-04-25 12:34:40 +10:00 committed by GitHub
commit e4e4594aef
1 changed files with 7 additions and 0 deletions

View File

@ -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" ;;