#!/bin/bash if [ "$1" == "ver" ] || [ "$1" == "-ver" ]; then echo '{"version":"14122022","compatible":"v5"}' else . /lib/web/init . /lib/init/functions if [ -r /etc/default/fwupdate ]; then . /etc/default/fwupdate fi if [ "$1" == "b" ] || [ "$1" == "-b" ]; then cp -f /mnt/mmc/ez_sys/source/teco_firmware.tfw /tmp/update/teco_firmware.tfw #teco_imx6ul.tfw fi #rm -f /tmp/update/*.tfw >/dev/null 2>&1 /sbin/fwupdate -i 2>&1 & fi