Support slackware linux
Signed-off-by: Hiroshi Miura <miurahr@linux.com>
This commit is contained in:
parent
f2b83ac662
commit
bae7dbb0e2
|
@ -0,0 +1,26 @@
|
||||||
|
require "vagrant"
|
||||||
|
|
||||||
|
require Vagrant.source_root.join("plugins/hosts/linux/host")
|
||||||
|
|
||||||
|
module VagrantPlugins
|
||||||
|
module HostSlackware
|
||||||
|
class Host < VagrantPlugins::HostLinux::Host
|
||||||
|
def self.match?
|
||||||
|
return File.exists?("/etc/slackware-release")
|
||||||
|
end
|
||||||
|
|
||||||
|
# Normal, mid-range precedence.
|
||||||
|
def self.precedence
|
||||||
|
5
|
||||||
|
end
|
||||||
|
|
||||||
|
def initialize(*args)
|
||||||
|
super
|
||||||
|
|
||||||
|
@nfs_apply_command = "/usr/sbin/exportfs -r"
|
||||||
|
@nfs_check_command = "/etc/rc.d/rc.nfsd status"
|
||||||
|
@nfs_start_command = "/etc/rc.d/rc.nfsd start"
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
|
@ -0,0 +1,15 @@
|
||||||
|
require "vagrant"
|
||||||
|
|
||||||
|
module VagrantPlugins
|
||||||
|
module HostGentoo
|
||||||
|
class Plugin < Vagrant.plugin("2")
|
||||||
|
name "Slackware host"
|
||||||
|
description "Slackware and derivertives host support."
|
||||||
|
|
||||||
|
host("slackware") do
|
||||||
|
require File.expand_path("../host", __FILE__)
|
||||||
|
Host
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
Loading…
Reference in New Issue