Merge pull request #476 from konimex/gobolinux

Distro: Added support for GoboLinux
This commit is contained in:
Dylan Araps 2016-12-02 23:03:50 +11:00 committed by GitHub
commit 4e48f90012
1 changed files with 9 additions and 0 deletions

View File

@ -52,6 +52,12 @@ get_distro() {
esac esac
ascii_distro="Windows 10" ascii_distro="Windows 10"
elif [[ -f "/etc/GoboLinuxVersion" ]]; then
case "$distro_shorthand" in
"on" | "tiny") distro="GoboLinux" ;;
*) distro="GoboLinux $(< /etc/GoboLinuxVersion)"
esac
elif [[ -f "/etc/redstar-release" ]]; then elif [[ -f "/etc/redstar-release" ]]; then
case "$distro_shorthand" in case "$distro_shorthand" in
"on" | "tiny") distro="Red Star OS" ;; "on" | "tiny") distro="Red Star OS" ;;
@ -410,6 +416,9 @@ get_packages() {
type -p tce-status >/dev/null && \ type -p tce-status >/dev/null && \
packages="$((packages+=$(tce-status -i | wc -l)))" packages="$((packages+=$(tce-status -i | wc -l)))"
type -p Compile >/dev/null && \
packages="$((packages+=$(ls -d -1 /Programs/*/ | wc -l)))"
# pisi is sometimes unavailable in Solus(?). This uses eopkg # pisi is sometimes unavailable in Solus(?). This uses eopkg
# instead if pisi isn't found. # instead if pisi isn't found.
if type -p pisi >/dev/null; then if type -p pisi >/dev/null; then