From a32b25897af45abcd8d96383e45c024cd029cf66 Mon Sep 17 00:00:00 2001 From: Micheal Wall Date: Sat, 9 May 2020 19:29:51 -0500 Subject: [PATCH] changed some text and moved a function --- modules/ping-monitor | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/ping-monitor b/modules/ping-monitor index 4c79e02..8c3e324 100644 --- a/modules/ping-monitor +++ b/modules/ping-monitor @@ -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}"