#!/bin/sh # # Manage analog channel calibration. # . /opt/puzzlefw/lib/functions.sh # Copy calibration file to the SD card. cal_save() { # Lock to avoid conflicting changes. lock_config || exit 1 echo "Copying changed calibration to SD card ..." sync_config calibration.conf || exit 1 } case "$1" in show) cat ${CONFIG_DIR}/calibration.conf ;; save) cal_save ;; *) cat <