2013-08-24 13:10:51 +00:00
|
|
|
require "vagrant"
|
|
|
|
|
|
|
|
require Vagrant.source_root.join("plugins/hosts/linux/host")
|
|
|
|
|
|
|
|
module VagrantPlugins
|
|
|
|
module HostSlackware
|
|
|
|
class Host < VagrantPlugins::HostLinux::Host
|
|
|
|
def self.match?
|
2013-08-26 07:56:12 +00:00
|
|
|
return File.exists?("/etc/slackware-release") || Dir.glob("/usr/lib/setup/Plamo-*").length > 0
|
2013-08-24 13:10:51 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
# Normal, mid-range precedence.
|
|
|
|
def self.precedence
|
|
|
|
5
|
|
|
|
end
|
|
|
|
|
|
|
|
def initialize(*args)
|
|
|
|
super
|
|
|
|
|
|
|
|
@nfs_apply_command = "/usr/sbin/exportfs -r"
|
2013-08-26 07:56:12 +00:00
|
|
|
@nfs_check_command = "pidof nfsd > /dev/null"
|
2013-08-24 13:10:51 +00:00
|
|
|
@nfs_start_command = "/etc/rc.d/rc.nfsd start"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|