From b375ee19cedde35dd0165066519e2911febd095a Mon Sep 17 00:00:00 2001 From: Igor Socec Date: Wed, 25 Jan 2017 16:36:02 +0100 Subject: [PATCH] Fix bug where tty is dropped out of device name --- tools/moxerverctl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/moxerverctl b/tools/moxerverctl index 76ae3d6..d37eb3e 100644 --- a/tools/moxerverctl +++ b/tools/moxerverctl @@ -63,9 +63,9 @@ do_read_config() # configuration lines CONF_LINES[$CONF_SIZE]=$(echo -n $line) # extract configuration arguments - tcp=$(echo $line | awk '{print $1}' | tr -d "tcp=") - tty=$(echo $line | awk '{print $2}' | tr -d "tty=") - baud=$(echo $line | awk '{print $3}' | tr -d "baud=") + tcp=$(echo $line | awk '{print $1}' | sed -e 's/tcp=//') + tty=$(echo $line | awk '{print $2}' | sed -e 's/tty=//') + baud=$(echo $line | awk '{print $3}' | sed -e 's/baud=//') # compose configuration argument lines for passing to the servers CONF_ARGS[$CONF_SIZE]="-p $tcp -t $tty -b $baud" # increment configuration size (array index)