This commit is contained in:
2024-03-26 14:31:48 +01:00
parent 82be1d5544
commit f40116648d
6 changed files with 59 additions and 0 deletions

16
teco/fw.sh Normal file
View File

@@ -0,0 +1,16 @@
#!/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