Add Devuan detection
authorDavid Hare <davidahare@gmail.com>
Fri, 20 Jan 2017 12:13:35 +0000 (12:13 +0000)
committerColin Watson <cjwatson@debian.org>
Fri, 20 Jan 2017 12:13:35 +0000 (12:13 +0000)
Closes: #801631

debian/changelog
os-probes/mounted/common/90linux-distro

index f5f7747..d3bd37b 100644 (file)
@@ -27,6 +27,7 @@ os-prober (1.72) UNRELEASED; urgency=medium
   * Fix typos in README (thanks, Nyav; closes: #803155).
   * Add os-release support (based loosely on a patch by Török Edwin; closes:
     #794409).
+  * Add Devuan detection (thanks, David Hare; closes: #801631).
 
  -- Colin Watson <cjwatson@debian.org>  Sat, 31 Dec 2016 17:11:49 +0000
 
index 854ead7..660a19e 100755 (executable)
@@ -131,6 +131,9 @@ if (ls "$dir"/lib*/ld*.so* && [ -d "$dir/boot" ] || ls "$dir"/usr/lib*/ld*.so*)
        elif [ -e "$dir/etc/4MLinux-version" ]; then
                short="4MLinux"
                long="4MLinux $(head -1 "$dir/etc/4MLinux-version")"
+       elif [ -e "$dir/etc/devuan_version" ]; then
+               short="Devuan"
+               long="$(printf "Devuan GNU/Linux (%s)\n" "$(cat "$dir/etc/devuan_version")")"
        else
                short="Linux"
                long="unknown Linux distribution"