From: Razvan Deaconescu Date: Tue, 3 Aug 2010 16:28:39 +0000 (+0300) Subject: ControlScripts: add detec_complete_client function to client_script_mappings X-Git-Tag: schedule-scenario~23 X-Git-Url: http://p2p-next.cs.pub.ro/gitweb/?a=commitdiff_plain;h=ea08aaf06fe0c09c8c51d1311dcb73d9d11b8258;p=p2p-testing-infrastructure.git ControlScripts: add detec_complete_client function to client_script_mappings --- 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 +}