#!/bin/shcd"$(dirname -- "$0")"||exit $?
FILES="$(find . -maxdepth 1 -name 'D200_*.gcode')"if["$(echo "$FILES" |wc -w)"-ne1]thenecho>&2"Error: not a single D200 GCode file"exit1fi# Never stop the fansed's/^M107$/M106 S130/'"$FILES"> dagoma.g
echo'dagoma.g is ready!'