module("luci.controller.owrt_full_backup", package.seeall) function index() entry({"admin", "services", "owrt-full-backup"}, call("action_open"), "OpenWrt Full Backup", 90).dependent = false end function action_open() local http = require "luci.http" local fs = require "nixio.fs" local key = fs.readfile("/etc/owrt-full-backup/web.key") or "" key = key:gsub("%s+", "") if key == "" then http.prepare_content("text/html; charset=utf-8") http.write("
Веб-ключ не найден. Переустанови модуль командой sh install.sh.