ControlScripts: add detec_complete_client function to client_script_mappings
authorRazvan Deaconescu <razvan.deaconescu@cs.pub.ro>
Tue, 3 Aug 2010 16:28:39 +0000 (19:28 +0300)
committerRazvan Deaconescu <razvan.deaconescu@cs.pub.ro>
Tue, 3 Aug 2010 16:28:39 +0000 (19:28 +0300)
ConfigFiles/client_script_mappings

index d331fff..1504afa 100644 (file)
@@ -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
+}