changed some text and moved a function

pull/37/head
Micheal Wall 2020-05-09 19:29:51 -05:00
parent 1b278496e9
commit a32b25897a
1 changed files with 6 additions and 6 deletions

View File

@ -1,7 +1,7 @@
#!/bin/bash /usr/lib/turtle/turtle_module
VERSION="1.0"
DESCRIPTION="Sends ping response data to a remote host via SSHFS"
DESCRIPTION="Sends ping response data to a SSHFS host"
CONF=/tmp/ping-monitor.form
: ${DIALOG_OK=0}
@ -25,6 +25,11 @@ function set_globals {
fi
}
function check_sshfs {
cat /etc/mtab | awk '{print $2}' | grep -e '^/sshfs'
return $?
}
function stop_ping {
pingpid=$(ps | grep -v grep | grep 'ping '"${target}" | awk '{print $1}')
kill -2 ${pingpid}
@ -56,11 +61,6 @@ function start_ping {
return 0
}
function check_sshfs {
cat /etc/mtab | awk '{print $2}' | grep -e '^/sshfs'
return $?
}
function move {
local dt="$(date +%Y%d%d-%H%M%S)"
local dp="/root/ping_monitor.${dt}"