Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion modules/autossh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ CONF=/tmp/autossh.form

function start {
autossh_host=$(uci show autossh.@autossh[0].ssh | awk '{print $7}' | sed 's/@/ /g' | awk '{print $2}')
touch /root/.ssh/known_hosts
mkdir -p /root.ssh && touch /root/.ssh/known_hosts
if grep $autossh_host /root/.ssh/known_hosts; then
/etc/init.d/autossh start
else
Expand Down