Sign in
opensecura
/
scripts
/
6ae4b4b642441c102ef72700763c439cd6642bf6
/
.
/
create-kshell-socket-port.sh
blob: 5d42aaaa518803be9e1e1fc4ffa482cccf01647a [
file
] [
log
] [
blame
]
#! /bin/bash
# Create kata shell socket port based on the renode port number as the input
# argument.
TERM_PORT
=
$
{
1
:-
0
}
if
[[
$
{
TERM_PORT
}
-
ge
0
]];
then
SOCKET_PORT
=
$
((
$
{
TERM_PORT
}
+
3456
))
else
SOCKET_PORT
=
1337
fi
echo
"${SOCKET_PORT}"