Firmware image verification script is missing from repo

Quick helper script that checks using the built in functions of
OpenWRT that the firmware file uploaded is indeed a proper
firmware image.

fixes BBHN->Ticket:9
This commit is contained in:
Conrad Lara - KG6JEI 2013-12-09 20:25:13 -08:00
parent 8425998355
commit 8d5f6f85e1
1 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,13 @@
#!/bin/sh
. /etc/functions.sh
include /lib/upgrade/
if (eval platform_check_image "$*")
then
return 0;
else
return 1;
fi