From 8d5f6f85e18341063c711ec09f9113d1c6c5bfb2 Mon Sep 17 00:00:00 2001 From: Conrad Lara - KG6JEI Date: Mon, 9 Dec 2013 20:25:13 -0800 Subject: [PATCH] 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 --- files/usr/local/bin/firmwarecheck.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 files/usr/local/bin/firmwarecheck.sh diff --git a/files/usr/local/bin/firmwarecheck.sh b/files/usr/local/bin/firmwarecheck.sh new file mode 100755 index 00000000..4f3521cc --- /dev/null +++ b/files/usr/local/bin/firmwarecheck.sh @@ -0,0 +1,13 @@ +#!/bin/sh +. /etc/functions.sh + +include /lib/upgrade/ + +if (eval platform_check_image "$*") +then + return 0; +else + return 1; +fi + +