forked from autodeploy_bin/sls_x12sa
14 lines
425 B
Bash
Executable File
14 lines
425 B
Bash
Executable File
#!/usr/bin/bash
|
|
|
|
start_time="$(date -u +%s)"
|
|
|
|
# first try without NLA
|
|
if ! xfreerdp /u:"$1" -v:"$2" /d:psich /cert-ignore +clipboard /size:1840x1350 /network:broadband -sec-nla; then
|
|
|
|
elapsed="$(( $(date -u +%s) - start_time ))"
|
|
# and if it failed fast with NLA
|
|
if [[ $elapsed -lt 10 ]]; then
|
|
xfreerdp /u:"$1" -v:"$2" /d:psich /cert-ignore +clipboard /dynamic-resolution /network:broadband
|
|
fi
|
|
fi
|