summaryrefslogtreecommitdiffhomepage
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/admin-full/luasrc/controller/admin/system.lua2
-rw-r--r--modules/admin-mini/luasrc/controller/mini/system.lua2
-rw-r--r--modules/failsafe/luasrc/controller/failsafe/failsafe.lua2
-rw-r--r--modules/niu/luasrc/controller/niu/system.lua4
4 files changed, 5 insertions, 5 deletions
diff --git a/modules/admin-full/luasrc/controller/admin/system.lua b/modules/admin-full/luasrc/controller/admin/system.lua
index 1087cf8db6..55ad01ca48 100644
--- a/modules/admin-full/luasrc/controller/admin/system.lua
+++ b/modules/admin-full/luasrc/controller/admin/system.lua
@@ -189,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
diff --git a/modules/admin-mini/luasrc/controller/mini/system.lua b/modules/admin-mini/luasrc/controller/mini/system.lua
index 519c15bc63..71b5b63519 100644
--- a/modules/admin-mini/luasrc/controller/mini/system.lua
+++ b/modules/admin-mini/luasrc/controller/mini/system.lua
@@ -81,7 +81,7 @@ function action_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
diff --git a/modules/failsafe/luasrc/controller/failsafe/failsafe.lua b/modules/failsafe/luasrc/controller/failsafe/failsafe.lua
index c37fef597c..1da3438f8f 100644
--- a/modules/failsafe/luasrc/controller/failsafe/failsafe.lua
+++ b/modules/failsafe/luasrc/controller/failsafe/failsafe.lua
@@ -53,7 +53,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
diff --git a/modules/niu/luasrc/controller/niu/system.lua b/modules/niu/luasrc/controller/niu/system.lua
index 593a448839..127a311c57 100644
--- a/modules/niu/luasrc/controller/niu/system.lua
+++ b/modules/niu/luasrc/controller/niu/system.lua
@@ -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