From ea08aaf06fe0c09c8c51d1311dcb73d9d11b8258 Mon Sep 17 00:00:00 2001 From: Razvan Deaconescu Date: Tue, 3 Aug 2010 19:28:39 +0300 Subject: [PATCH] ControlScripts: add detec_complete_client function to client_script_mappings --- ConfigFiles/client_script_mappings | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/ConfigFiles/client_script_mappings b/ConfigFiles/client_script_mappings index d331fff..1504afa 100644 --- a/ConfigFiles/client_script_mappings +++ b/ConfigFiles/client_script_mappings @@ -37,3 +37,19 @@ stop_client() ;; esac } + +detect_complete_client() +{ + local client_type=$1 + local log_file=$2 + + DEBUG echo "stopping client ..." + case "${client_type}" in + "hrktorrent_seeder") + ./detect_complete_hrk.sh ${log_file} + ;; + "hrktorrent_leecher") + ./detect_complete_hrk.sh ${log_file} + ;; + esac +} -- 2.20.1