don't use symlink to /lib/functions.sh
[project/luci.git] / modules / admin-full / luasrc / controller / admin / system.lua
index a5666cc..55ad01c 100644 (file)
@@ -51,9 +51,6 @@ function action_clock_status()
        if set ~= nil and set > 0 then
                local date = os.date("*t", set)
                if date then
-                       -- prevent session timeoutby updating mtime
-                       nixio.fs.utimes(luci.sauth.sessionpath .. "/" .. luci.dispatcher.context.authsession, set, set)
-
                        luci.sys.call("date -s '%04d-%02d-%02d %02d:%02d:%02d'" %{
                                date.year, date.month, date.day, date.hour, date.min, date.sec
                        })
@@ -192,7 +189,7 @@ function action_flashops()
        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"
                                % image_tmp