Merge pull request #308 from chris5560/master
authorJo-Philipp Wich <jow@openwrt.org>
Sun, 25 Jan 2015 11:36:50 +0000 (12:36 +0100)
committerJo-Philipp Wich <jow@openwrt.org>
Sun, 25 Jan 2015 11:36:50 +0000 (12:36 +0100)
luci-app-privoxy: move from openwrt/packages to openwrt/luci

libs/luci-lib-ip/src/ip.c
modules/luci-mod-admin-full/luasrc/controller/admin/system.lua

index c799419..5bff693 100644 (file)
@@ -1270,7 +1270,9 @@ static int link_get(lua_State *L)
        lua_newtable(L);
 
        nl_send_auto_complete(sock, msg);
-       nl_recvmsgs(sock, cb);
+
+       while (st.pending > 0)
+               nl_recvmsgs(sock, cb);
 
        nlmsg_free(msg);
        nl_cb_put(cb);
index 055142b..52e347d 100644 (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()