AutoSSH: Fix an issue where endquotes would show in the configuration input boxes
parent
07f5edfeeb
commit
b244de6371
|
@ -1,6 +1,6 @@
|
|||
#!/bin/bash /usr/lib/turtle/turtle_module
|
||||
|
||||
VERSION="1.2"
|
||||
VERSION="1.3"
|
||||
DESCRIPTION="AutoSSH maintains persistent secure shells"
|
||||
CONF=/tmp/autossh.form
|
||||
|
||||
|
@ -32,8 +32,8 @@ function status {
|
|||
function configure {
|
||||
if [ -s /etc/config/autossh ]
|
||||
then
|
||||
autossh_host=$(uci show autossh.@autossh[0].ssh | awk '{print $7}')
|
||||
autossh_port=$(uci show autossh.@autossh[0].ssh | awk '{print $9}')
|
||||
autossh_host=$(uci show autossh.@autossh[0].ssh | awk '{print $7}' | sed "s/'//g")
|
||||
autossh_port=$(uci show autossh.@autossh[0].ssh | awk '{print $9}' | sed "s/'//g")
|
||||
autossh_remoteport=$(uci show autossh.@autossh[0].ssh | awk '{print $6}' | sed 's/:/ /g' | awk '{print $1}')
|
||||
autossh_localport=$(uci show autossh.@autossh[0].ssh | awk '{print $6}' | sed 's/:/ /g' | awk '{print $3}')
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue