vagrant-serial 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
@@ -7,9 +7,9 @@ module Vagrant
|
|
7
7
|
end
|
8
8
|
|
9
9
|
def call(env)
|
10
|
-
command = ["modifyvm", env[:vm].
|
10
|
+
command = ["modifyvm", env[:vm].uuid, "--uart1", "0x3F8", "4", "--uartmode1", "server", "$HOME/serial/#{env[:vm].uuid}-com1"]
|
11
11
|
env[:vm].provider.driver.execute_command(command)
|
12
|
-
command = ["modifyvm", env[:vm].
|
12
|
+
command = ["modifyvm", env[:vm].uuid, "--uart2", "0x2F8", "3", "--uartmode1", "server", "$HOME/serial/#{env[:vm].uuid}-com2"]
|
13
13
|
env[:vm].provider.driver.execute_command(command)
|
14
14
|
@app.call(env)
|
15
15
|
end
|
@@ -7,8 +7,8 @@ module Vagrant
|
|
7
7
|
end
|
8
8
|
|
9
9
|
def call(env)
|
10
|
-
env[:vm].channel.execute("socat tcp-l:30001,reuseaddr,fork UNIX-CONNECT:$HOME/serial/#{env[:vm].
|
11
|
-
env[:vm].channel.execute("socat tcp-l:30002,reuseaddr,fork UNIX-CONNECT:$HOME/serial/#{env[:vm].
|
10
|
+
env[:vm].channel.execute("socat tcp-l:30001,reuseaddr,fork UNIX-CONNECT:$HOME/serial/#{env[:vm].uuid}-com1 &")
|
11
|
+
env[:vm].channel.execute("socat tcp-l:30002,reuseaddr,fork UNIX-CONNECT:$HOME/serial/#{env[:vm].uuid}-com2 &")
|
12
12
|
@app.call(env)
|
13
13
|
end
|
14
14
|
end
|