Compile correct openbsd mounts command

This commit is contained in:
Jamie Cameron
2011-12-28 20:49:02 -08:00
parent 1178609b44
commit 7ae2142f59

View File

@@ -128,7 +128,8 @@ sub list_mounted
{
# get the list of mounted filesystems
local(@rv, $_);
local $cmd = $uname_release =~ /^4\./ ? "openbsd-mounts-4" :
local $cmd = $uname_release =~ /^5\./ ? "openbsd-mounts-5" :
$uname_release =~ /^4\./ ? "openbsd-mounts-4" :
$uname_release =~ /^3\./ ? "openbsd-mounts-3" :
"openbsd-mounts-2";
&compile_program($cmd, '.*86');