summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-hd-idle
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-app-hd-idle')
-rw-r--r--applications/luci-app-hd-idle/luasrc/controller/hd_idle.lua15
-rw-r--r--applications/luci-app-hd-idle/root/usr/share/luci/menu.d/luci-app-hd-idle.json14
2 files changed, 14 insertions, 15 deletions
diff --git a/applications/luci-app-hd-idle/luasrc/controller/hd_idle.lua b/applications/luci-app-hd-idle/luasrc/controller/hd_idle.lua
deleted file mode 100644
index 9a981acac3..0000000000
--- a/applications/luci-app-hd-idle/luasrc/controller/hd_idle.lua
+++ /dev/null
@@ -1,15 +0,0 @@
--- Copyright 2008 Yanira <forum-2008@email.de>
--- Licensed to the public under the Apache License 2.0.
-
-module("luci.controller.hd_idle", package.seeall)
-
-function index()
- if not nixio.fs.access("/etc/config/hd-idle") then
- return
- end
-
- local page
-
- page = entry({"admin", "services", "hd_idle"}, cbi("hd_idle"), _("HDD Idle"), 60)
- page.dependent = true
-end
diff --git a/applications/luci-app-hd-idle/root/usr/share/luci/menu.d/luci-app-hd-idle.json b/applications/luci-app-hd-idle/root/usr/share/luci/menu.d/luci-app-hd-idle.json
new file mode 100644
index 0000000000..5e6961fab3
--- /dev/null
+++ b/applications/luci-app-hd-idle/root/usr/share/luci/menu.d/luci-app-hd-idle.json
@@ -0,0 +1,14 @@
+{
+ "admin/services/hd_idle": {
+ "title": "HDD Idle",
+ "order": 60,
+ "action": {
+ "type": "cbi",
+ "path": "hd_idle",
+ "post": { "cbi.submit": true }
+ },
+ "depends": {
+ "uci": { "hd_idle": true }
+ }
+ }
+}