+poner_estado_umbral () {
+ ID=$1
+ ESTADO=$2
+
+ if [ "$ESTADO" != "A" ] && [ "$ESTADO" != "I" ] ; then
+ return 1
+ fi
+ SALIDA=`sed "s/^$ID\(;[^;]*;[^;]*;[^;]*;\)[^;]*\(;[^;]*;[^;]*;[^;]*\)$/$ID\1I\2/" "$BASE_DIR/umbrales.param"`
+ echo "$SALIDA" > "$BASE_DIR/umbrales.param"
+}
+