Aggiunto driver 'remote' per gestire da un'installazione master di piGarden più installazioni remote

This commit is contained in:
lejubila
2018-03-25 12:32:39 +02:00
parent dd3cab12c2
commit 5c00853e39
12 changed files with 388 additions and 20 deletions

View File

@@ -111,9 +111,13 @@ function drv_rele_close {
elif [ "$fnc" == "drvnotfound" ]; then
log_write "Driver not found: $idx"
message_write "warning" "Driver not found: $idx"
return 1
else
echo "$(date) $fnc arg:$idx" >> "$LOG_OUTPUT_DRV_FILE"
$fnc "$idx" >> "$LOG_OUTPUT_DRV_FILE" 2>&1
if [ $? -eq 1 ]; then
return 1
fi
fi
}
@@ -133,9 +137,13 @@ function drv_rele_open {
elif [ "$fnc" == "drvnotfound" ]; then
log_write "Driver not found: $idx"
message_write "warning" "Driver not found: $idx"
return 1
else
echo "$(date) $fnc arg:$idx" >> "$LOG_OUTPUT_DRV_FILE"
$fnc "$idx" >> "$LOG_OUTPUT_DRV_FILE" 2>&1
if [ $? -eq 1 ]; then
return 1
fi
fi
}