Skip to content

Commit

Permalink
luci-mod-admin-full: use sysupgrade -T to test images
Browse files Browse the repository at this point in the history
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
  • Loading branch information
jow- committed Jan 24, 2015
1 parent eb1ef78 commit 9feb1b8
Showing 1 changed file with 1 addition and 7 deletions.
Expand Up @@ -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()
Expand Down

0 comments on commit 9feb1b8

Please sign in to comment.