Fix PCBSD detection

This commit is contained in:
Dylan 2016-05-14 15:19:09 +10:00
parent 78cfd0a5aa
commit 77867e1671
1 changed files with 4 additions and 1 deletions

View File

@ -509,6 +509,9 @@ getdistro () {
"BSD")
distro="$(uname -s)"
distro=${distro/DragonFly/DragonFlyBSD}
# Workaround for PCBSD as uname still displays FreeBSD.
[ -f "/etc/pcdbsd-lang" ] && distro="PCBSD"
;;
"Windows")
@ -2472,7 +2475,7 @@ colors () {
setcolors 7 1 3
;;
"DragonFly"*)
"DragonFly"* | "PCBSD"*)
setcolors 1 7 3
;;