File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -62,6 +62,8 @@ create_env()
62
62
is_power_on="true"
63
63
fi
64
64
65
+ attach_cmd=
66
+
65
67
# extras area
66
68
v6_addr=
67
69
v4_addr="${ssh_host}"
@@ -73,6 +75,7 @@ create_env()
73
75
case "${emulator}" in
74
76
jail)
75
77
type="container"
78
+ attach_cmd="/usr/local/bin/sudo /usr/local/bin/cbsd jlogin jname=${jname}"
76
79
;;
77
80
*)
78
81
type="vm"
@@ -219,6 +222,11 @@ create_env()
219
222
"image": "${image}",
220
223
EOF
221
224
225
+ if [ -n "${attach_cmd}" ]; then
226
+ ${CAT_CMD} >> ${json_tmp} <<EOF
227
+ "attach_cmd": "${attach_cmd}",
228
+ EOF
229
+ fi
222
230
if [ -n "${ssh_user}" ]; then
223
231
${CAT_CMD} >> ${json_tmp} <<EOF
224
232
"ssh_user": "${ssh_user}",
@@ -352,6 +360,7 @@ imgsize_bytes="${imgsize_bytes}"
352
360
imgsize="${imgsize}"
353
361
vm_os_type="${vm_os_type}"
354
362
vm_os_profile="${vm_os_profile}"
363
+ attach_cmd="${attach_cmd}"
355
364
ssh_user="${ssh_user}"
356
365
ssh_host="${ssh_host}"
357
366
ssh4_host="${ssh4_host}"
You can’t perform that action at this time.
0 commit comments