git.99rst.org
/
openwrt-luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
eb1ef78
)
luci-mod-admin-full: use sysupgrade -T to test images
author
Jo-Philipp Wich
<redacted>
Sat, 24 Jan 2015 13:26:51 +0000
(14:26 +0100)
committer
Jo-Philipp Wich
<redacted>
Sat, 24 Jan 2015 13:26:51 +0000
(14:26 +0100)
Signed-off-by: Jo-Philipp Wich <redacted>
modules/luci-mod-admin-full/luasrc/controller/admin/system.lua
patch
|
blob
|
history
diff --git
a/modules/luci-mod-admin-full/luasrc/controller/admin/system.lua
b/modules/luci-mod-admin-full/luasrc/controller/admin/system.lua
index 055142b53e67c2706947a7ccebf8a3f952feec25..52e347d07b6db9a8484cfe3134a74a34194fa3cf 100644
(file)
--- a/
modules/luci-mod-admin-full/luasrc/controller/admin/system.lua
+++ b/
modules/luci-mod-admin-full/luasrc/controller/admin/system.lua
@@
-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()
git clone https://git.99rst.org/PROJECT