Fix Slackware Host detection and nfsd checks

Slackware's version file is /etc/slackware-version not
/etc/slackware-release.
pidof is not on PATH by default (not running as root) so call it using
full path
This commit is contained in:
Guillermo Bonvehí 2015-10-07 01:17:07 -03:00
parent 169cacd710
commit 07e38f1bb3
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@ module VagrantPlugins
module Cap
class NFS
def self.nfs_check_command(env)
"pidof nfsd >/dev/null"
"/sbin/pidof nfsd >/dev/null"
end
def self.nfs_start_command(env)

View File

@ -4,7 +4,7 @@ module VagrantPlugins
module HostSlackware
class Host < Vagrant.plugin("2", :host)
def detect?(env)
return File.exists?("/etc/slackware-release") ||
return File.exists?("/etc/slackware-version") ||
!Dir.glob("/usr/lib/setup/Plamo-*").empty?
end
end