Merge pull request #56 from nathan-osman/detect-osmc

Detect OSMC and install the correct package.
This commit is contained in:
Eli Uriegas authored and GitHub committed 2018-01-10 10:33:16 -08:00
commit 0efaf40930
1 file changed
+7 -2
+7 -2
View File
@@ -180,8 +180,13 @@ check_forked() {
EOF
else
if [ -r /etc/debian_version ] && [ "$lsb_dist" != "ubuntu" ] && [ "$lsb_dist" != "raspbian" ]; then
# We're Debian and don't even know it!
lsb_dist=debian
if [ "$lsb_dist" = "osmc" ]; then
# OSMC runs Raspbian
lsb_dist=raspbian
else
# We're Debian and don't even know it!
lsb_dist=debian
fi
dist_version="$(sed 's/\/.*//' /etc/debian_version | sed 's/\..*//')"
case "$dist_version" in
9)