getdistro now runs at the start of the script with getos so we can use it in detection

This commit is contained in:
dylan araps
2016-01-05 18:56:05 +11:00
parent 528296626c
commit 26495ccab5

View File

@@ -229,8 +229,7 @@ case "$(uname)" in
esac esac
# Get Distro # Get Distro
getdistro () { case "$os" in
case "$os" in
"Linux" ) "Linux" )
if type -p crux >/dev/null 2>&1; then if type -p crux >/dev/null 2>&1; then
distro="CRUX" distro="CRUX"
@@ -280,8 +279,7 @@ getdistro () {
*) *)
distro="Unknown" distro="Unknown"
;; ;;
esac esac
}
# Get Title # Get Title
gettitle () { gettitle () {