void-packages/srcpkgs/os-prober/patches/detect-void.patch

16 lines
548 B
Diff
Raw Normal View History

--- os-probes/mounted/common/90linux-distro.orig 2014-04-16 09:43:51.787547427 +0200
+++ os-probes/mounted/common/90linux-distro 2014-04-16 09:47:16.956211695 +0200
@@ -112,7 +112,11 @@ if (ls "$dir"/lib*/ld*.so* || ls "$dir"/
long="Slackware Linux"
elif [ -e "$dir/sbin/xbps-install" ]; then
short="Void"
- long="Void Linux"
+ if file "$dir/sbin/xbps-install"|grep -q 32; then
+ long="Void Linux 32"
+ else
+ long="Void Linux 64"
+ fi
elif grep -qs OpenLinux "$dir/etc/issue"; then
short="Caldera"
long="Caldera OpenLinux"