Merge pull request #6367 from knixeur/fix-host-slackware
Fix Slackware Host detection and nfsd checks
This commit is contained in:
commit
fe36131549
|
@ -3,7 +3,7 @@ module VagrantPlugins
|
||||||
module Cap
|
module Cap
|
||||||
class NFS
|
class NFS
|
||||||
def self.nfs_check_command(env)
|
def self.nfs_check_command(env)
|
||||||
"pidof nfsd >/dev/null"
|
"/sbin/pidof nfsd >/dev/null"
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.nfs_start_command(env)
|
def self.nfs_start_command(env)
|
||||||
|
|
|
@ -4,7 +4,7 @@ module VagrantPlugins
|
||||||
module HostSlackware
|
module HostSlackware
|
||||||
class Host < Vagrant.plugin("2", :host)
|
class Host < Vagrant.plugin("2", :host)
|
||||||
def detect?(env)
|
def detect?(env)
|
||||||
return File.exists?("/etc/slackware-release") ||
|
return File.exists?("/etc/slackware-version") ||
|
||||||
!Dir.glob("/usr/lib/setup/Plamo-*").empty?
|
!Dir.glob("/usr/lib/setup/Plamo-*").empty?
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue