luci-mod-admin-full: use sysupgrade -T to test images

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
pull/316/head
Jo-Philipp Wich 2015-01-24 14:26:51 +01:00
parent eb1ef783f6
commit 9feb1b8a78
1 changed files with 1 additions and 7 deletions

View File

@ -178,13 +178,7 @@ function action_flashops()
local image_tmp = "/tmp/firmware.img"
local function image_supported()
-- XXX: yay...
return ( 0 == os.execute(
". /lib/functions.sh; " ..
"include /lib/upgrade; " ..
"platform_check_image %q >/dev/null"
% image_tmp
) )
return (os.execute("sysupgrade -T %q >/dev/null" % image_tmp) == 0)
end
local function image_checksum()