Jeff Bonhag 50d995f51d
Guest support for OpenWrt
This commit includes the following capabilties for OpenWrt:

- Guest detection
- SSH key replacement
- Change host name
- Rsync
2020-07-29 11:32:46 -04:00

17 lines
380 B
Ruby

module VagrantPlugins
module GuestOpenWrt
module Cap
class Halt
def self.halt(machine)
begin
machine.communicate.execute("halt")
rescue IOError, Vagrant::Errors::SSHDisconnected
# Ignore, this probably means connection closed because it
# shut down.
end
end
end
end
end
end