Fix bug where tty is dropped out of device name
This commit is contained in:
parent
f3babe58df
commit
b375ee19ce
1 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue