luci-0.11: merge r9559 - r9569
[project/luci.git] / modules / niu / luasrc / controller / niu / system.lua
index e9e767a1de12a2837c2eced81263470a80f7af94..127a311c57750024ba70bc860eb6ee7ec4aeb3f0 100644 (file)
@@ -18,7 +18,7 @@ module "luci.controller.niu.system"
 function index()
        local toniu = {on_success_to={"niu"}}
 
-       local e = entry({"niu", "system"}, alias("niu"), "System", 30)
+       local e = entry({"niu", "system"}, alias("niu"), "System", 40)
        e.niu_dbtemplate = "niu/system"
        e.niu_dbtasks = true
        e.niu_dbicon = "icons32/preferences-system.png"
@@ -127,7 +127,7 @@ function upgrade()
        local function image_supported()
                -- XXX: yay...
                return ( 0 == os.execute(
-                       ". /etc/functions.sh; " ..
+                       ". /lib/functions.sh; " ..
                        "include /lib/upgrade; " ..
                        "platform_check_image %q >/dev/null"
                                % tmpfile
@@ -262,4 +262,4 @@ function upgrade()
                        keepconfig=(keep_avail and http.formvalue("keepcfg") == "1")
                } )
        end     
-end
\ No newline at end of file
+end