From b244de6371048bef135755cfbbc31a7ceaa27d72 Mon Sep 17 00:00:00 2001 From: Foxtrot Date: Tue, 8 Oct 2019 19:11:01 +0100 Subject: [PATCH] AutoSSH: Fix an issue where endquotes would show in the configuration input boxes --- modules/autossh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/autossh b/modules/autossh index 6322676..6041fcf 100755 --- a/modules/autossh +++ b/modules/autossh @@ -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