mirror of https://gerrit.osmocom.org/osmo-dev
net/templates/run.sh: don't sleep .2 for tmux
It doesn't seem necessary to do the "sleep .2" for tmux, so only do it when starting with regular terminals. Change-Id: I70931922aac56dad3d1e4dec67ca2b78d7cca7ff
This commit is contained in:
parent
321a47c451
commit
76f1647f00
|
@ -131,6 +131,7 @@ EOF
|
||||||
tmux new-window -d -n "$title" "$launcher &; echo \$! > $pidfile_term; wait"
|
tmux new-window -d -n "$title" "$launcher &; echo \$! > $pidfile_term; wait"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
sleep .2
|
||||||
$terminal \
|
$terminal \
|
||||||
-title "CN:$title" \
|
-title "CN:$title" \
|
||||||
-e sh -c "$launcher" \
|
-e sh -c "$launcher" \
|
||||||
|
@ -226,50 +227,28 @@ echo "$!" > "$PIDFILE_TCPDUMP_LO"
|
||||||
term "$ggsn" GGSN
|
term "$ggsn" GGSN
|
||||||
|
|
||||||
if [ "${STP_CN_IP}" = "${STP_RAN_IP}" ]; then
|
if [ "${STP_CN_IP}" = "${STP_RAN_IP}" ]; then
|
||||||
sleep .2
|
|
||||||
term "$stp4cn" STP
|
term "$stp4cn" STP
|
||||||
else
|
else
|
||||||
sleep .2
|
|
||||||
term "$stp4cn" STP4CN
|
term "$stp4cn" STP4CN
|
||||||
|
|
||||||
sleep .2
|
|
||||||
term "$stp4ran" STP4RAN
|
term "$stp4ran" STP4RAN
|
||||||
|
|
||||||
sleep .2
|
|
||||||
term "$bscnat" BSCNAT
|
term "$bscnat" BSCNAT
|
||||||
fi
|
fi
|
||||||
|
|
||||||
sleep .2
|
|
||||||
term "$hlr" HLR
|
term "$hlr" HLR
|
||||||
|
|
||||||
sleep .2
|
|
||||||
term "$sgsn" SGSN
|
term "$sgsn" SGSN
|
||||||
|
|
||||||
sleep .2
|
|
||||||
term "$gbproxy" GBPROXY
|
term "$gbproxy" GBPROXY
|
||||||
|
|
||||||
sleep .2
|
|
||||||
term "$mgw4msc" MGW4MSC
|
term "$mgw4msc" MGW4MSC
|
||||||
|
|
||||||
sleep .2
|
|
||||||
term "$msc" MSC
|
term "$msc" MSC
|
||||||
|
|
||||||
sleep 2
|
|
||||||
term "$hnbgw" HNBGW
|
term "$hnbgw" HNBGW
|
||||||
|
|
||||||
sleep .2
|
|
||||||
|
|
||||||
if [ "$BSC_COUNT" = 1 ]; then
|
if [ "$BSC_COUNT" = 1 ]; then
|
||||||
term "$mgw4bsc -c osmo-mgw-for-bsc-0.cfg" MGW4BSC
|
term "$mgw4bsc -c osmo-mgw-for-bsc-0.cfg" MGW4BSC
|
||||||
sleep .2
|
|
||||||
term "$bsc -c osmo-bsc-0.cfg" BSC
|
term "$bsc -c osmo-bsc-0.cfg" BSC
|
||||||
else
|
else
|
||||||
term "$mgw4bsc -c osmo-mgw-for-bsc-0.cfg" MGW4BSC0
|
term "$mgw4bsc -c osmo-mgw-for-bsc-0.cfg" MGW4BSC0
|
||||||
sleep .2
|
|
||||||
term "$mgw4bsc -c osmo-mgw-for-bsc-1.cfg" MGW4BSC1
|
term "$mgw4bsc -c osmo-mgw-for-bsc-1.cfg" MGW4BSC1
|
||||||
sleep .2
|
|
||||||
term "$bsc -c osmo-bsc-0.cfg" BSC0
|
term "$bsc -c osmo-bsc-0.cfg" BSC0
|
||||||
sleep .2
|
|
||||||
term "$bsc -c osmo-bsc-1.cfg" BSC1
|
term "$bsc -c osmo-bsc-1.cfg" BSC1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -281,10 +260,8 @@ ${foreach_end}
|
||||||
|
|
||||||
|
|
||||||
if [ "x${MSC_MNCC}" != "xinternal" ]; then
|
if [ "x${MSC_MNCC}" != "xinternal" ]; then
|
||||||
sleep .2
|
|
||||||
term "$sipcon" SIPCON
|
term "$sipcon" SIPCON
|
||||||
|
|
||||||
sleep .2
|
|
||||||
case "${PBX_SERVER}" in
|
case "${PBX_SERVER}" in
|
||||||
"kamailio")
|
"kamailio")
|
||||||
term "$kamailio" KAMAILIO
|
term "$kamailio" KAMAILIO
|
||||||
|
|
Loading…
Reference in New Issue