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
13 lines
269 B
Ruby
13 lines
269 B
Ruby
require "vagrant"
|
|
|
|
module VagrantPlugins
|
|
module HostSlackware
|
|
class Host < Vagrant.plugin("2", :host)
|
|
def detect?(env)
|
|
return File.exists?("/etc/slackware-version") ||
|
|
!Dir.glob("/usr/lib/setup/Plamo-*").empty?
|
|
end
|
|
end
|
|
end
|
|
end
|