- echo "Failure for $tag" >>"$HOME/dc/autodl/errorlog"
- tail -n 20 "$outfile" >>"$HOME/dc/autodl/errorlog"
+ if [ "$stat" -eq 1 ]; then
+ echo "Failure for $tag" >>"$HOME/dc/autodl/errorlog"
+ tail -n 20 "$outfile" >>"$HOME/dc/autodl/errorlog"
+ elif [ "$stat" -eq 2 ]; then
+ echo "Connection error on $tag"
+ elif [ "$stat" -eq 3 ]; then
+ echo "Configuration error, disabling $tag"
+ cp "$outfile" "$d/.autodl/conferr"
+ touch "$d/.autodl/disabled"
+ fi