From c8925634ba3d8b58bf7b9b8520e43d31a9942d00 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 16 Apr 2014 09:35:49 +0200 Subject: [PATCH] os-prober: detect void if sbin/xbps-install exists. --- srcpkgs/os-prober/patches/detect-void.patch | 12 ++++++++++++ srcpkgs/os-prober/template | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/os-prober/patches/detect-void.patch diff --git a/srcpkgs/os-prober/patches/detect-void.patch b/srcpkgs/os-prober/patches/detect-void.patch new file mode 100644 index 00000000000..5126c0e5895 --- /dev/null +++ b/srcpkgs/os-prober/patches/detect-void.patch @@ -0,0 +1,12 @@ +--- os-probes/mounted/common/90linux-distro.orig 2014-04-16 09:33:35.940323527 +0200 ++++ os-probes/mounted/common/90linux-distro 2014-04-16 09:34:14.403560106 +0200 +@@ -110,6 +110,9 @@ if (ls "$dir"/lib*/ld*.so* || ls "$dir"/ + elif [ -e "$dir/sbin/pkgtool" ]; then + short="Slackware" + long="Slackware Linux" ++ elif [ -e "$dir/sbin/xbps-install" ]; then ++ short="Void" ++ long="Void Linux" + elif grep -qs OpenLinux "$dir/etc/issue"; then + short="Caldera" + long="Caldera OpenLinux" diff --git a/srcpkgs/os-prober/template b/srcpkgs/os-prober/template index 1e51d09538a..8d42d6285cd 100644 --- a/srcpkgs/os-prober/template +++ b/srcpkgs/os-prober/template @@ -1,7 +1,7 @@ # Template file for 'os-prober' pkgname=os-prober version=1.63 -revision=3 +revision=4 make_dirs="/var/lib/os-prober 0755 root root" short_desc="Utility to detect other OSes on a set of drives" maintainer="Juan RP "