update 2022-07-25 20:22:27
This commit is contained in:
parent
ebc4db4e1f
commit
1c9487ff01
|
@ -10,11 +10,11 @@ include $(TOPDIR)/rules.mk
|
||||||
PKG_ARCH_LINKEASE:=$(ARCH)
|
PKG_ARCH_LINKEASE:=$(ARCH)
|
||||||
|
|
||||||
PKG_NAME:=linkease
|
PKG_NAME:=linkease
|
||||||
PKG_VERSION:=0.7.7
|
PKG_VERSION:=0.8.1
|
||||||
PKG_RELEASE:=$(PKG_ARCH_LINKEASE)-1
|
PKG_RELEASE:=$(PKG_ARCH_LINKEASE)-1
|
||||||
PKG_SOURCE:=$(PKG_NAME)-binary-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-binary-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=http://fw.koolcenter.com/binary/LinkEase/LinuxStorage/
|
PKG_SOURCE_URL:=http://fw.koolcenter.com/binary/LinkEase/LinuxStorage/
|
||||||
PKG_HASH:=2d98b1c704afafca49623e6b3b32ba4d4251dd5822dfdc29bc4613cc782568f0
|
PKG_HASH:=4bfc6e916324d305ad3309cb46ad78c6e356bca79b4cef75accf82b018600105
|
||||||
|
|
||||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-binary-$(PKG_VERSION)
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-binary-$(PKG_VERSION)
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=luci-app-amlogic
|
PKG_NAME:=luci-app-amlogic
|
||||||
PKG_VERSION:=3.1.108
|
PKG_VERSION:=3.1.110
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
PKG_LICENSE:=GPL-2.0 License
|
PKG_LICENSE:=GPL-2.0 License
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 4.0 KiB |
|
@ -44,6 +44,7 @@ function index()
|
||||||
entry({ "admin", "system", "amlogic", "start_openwrt_author" }, call("action_openwrt_author")).leaf = true
|
entry({ "admin", "system", "amlogic", "start_openwrt_author" }, call("action_openwrt_author")).leaf = true
|
||||||
entry({ "admin", "system", "amlogic", "state" }, call("action_state")).leaf = true
|
entry({ "admin", "system", "amlogic", "state" }, call("action_state")).leaf = true
|
||||||
entry({ "admin", "system", "amlogic", "start_poweroff" }, call("action_poweroff")).leaf = true
|
entry({ "admin", "system", "amlogic", "start_poweroff" }, call("action_poweroff")).leaf = true
|
||||||
|
entry({ "admin", "system", "amlogic", "start_switch" }, call("action_switch")).leaf = true
|
||||||
end
|
end
|
||||||
|
|
||||||
--Remove the spaces in the string
|
--Remove the spaces in the string
|
||||||
|
@ -450,3 +451,10 @@ end
|
||||||
function action_poweroff()
|
function action_poweroff()
|
||||||
luci.sys.exec("/sbin/poweroff")
|
luci.sys.exec("/sbin/poweroff")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
--Switching dual partition
|
||||||
|
function action_switch()
|
||||||
|
luci.sys.exec("[ -f /boot/efi/EFI/BOOT/grub.cfg.prev ] && (cd /boot/efi/EFI/BOOT/ && mv -f grub.cfg grub.cfg.bak && mv -f grub.cfg.prev grub.cfg && mv -f grub.cfg.bak grub.cfg.prev)")
|
||||||
|
luci.sys.exec("sync && reboot")
|
||||||
|
end
|
||||||
|
|
||||||
|
|
|
@ -5,13 +5,20 @@
|
||||||
local io = require "io"
|
local io = require "io"
|
||||||
local os = require "os"
|
local os = require "os"
|
||||||
local fs = require "nixio.fs"
|
local fs = require "nixio.fs"
|
||||||
local b, c
|
local b, c, x
|
||||||
|
|
||||||
-- Checks wheather the given path exists and points to a directory.
|
-- Checks wheather the given path exists and points to a directory.
|
||||||
function isdirectory(dirname)
|
function isdirectory(dirname)
|
||||||
return fs.stat(dirname, "type") == "dir"
|
return fs.stat(dirname, "type") == "dir"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- Check if a file or directory exists
|
||||||
|
function file_exists(path)
|
||||||
|
local file = io.open(path, "rb")
|
||||||
|
if file then file:close() end
|
||||||
|
return file ~= nil
|
||||||
|
end
|
||||||
|
|
||||||
--SimpleForm for Backup Config
|
--SimpleForm for Backup Config
|
||||||
b = SimpleForm("backup", nil)
|
b = SimpleForm("backup", nil)
|
||||||
b.title = translate("Backup Firmware Config")
|
b.title = translate("Backup Firmware Config")
|
||||||
|
@ -90,10 +97,22 @@ w.render = function(self, section, scope)
|
||||||
end
|
end
|
||||||
|
|
||||||
w.write = function(self, section, scope)
|
w.write = function(self, section, scope)
|
||||||
local x = luci.sys.exec("btrfs subvolume snapshot -r /etc /.snapshots/etc-" .. os.date("%m.%d.%H%M%S") .. " 2>/dev/null && sync")
|
local x = luci.sys.exec("btrfs subvolume snapshot -r /etc /.snapshots/etc-" ..
|
||||||
|
os.date("%m.%d.%H%M%S") .. " 2>/dev/null && sync")
|
||||||
luci.http.redirect(luci.dispatcher.build_url("admin", "system", "amlogic", "backup"))
|
luci.http.redirect(luci.dispatcher.build_url("admin", "system", "amlogic", "backup"))
|
||||||
end
|
end
|
||||||
w = d:option(TextValue, "snapshot_list", nil)
|
w = d:option(TextValue, "snapshot_list", nil)
|
||||||
w.template = "amlogic/other_snapshot"
|
w.template = "amlogic/other_snapshot"
|
||||||
|
|
||||||
return b, c
|
--KVM virtual machine switching dual partition
|
||||||
|
if file_exists("/boot/efi/EFI/BOOT/grub.cfg.prev") then
|
||||||
|
x = SimpleForm("kvm", nil)
|
||||||
|
x.title = translate("KVM dual system switching")
|
||||||
|
x.description = translate("You can freely switch between KVM dual partitions, using OpenWrt systems in different partitions.")
|
||||||
|
x.reset = false
|
||||||
|
x.submit = false
|
||||||
|
|
||||||
|
x:section(SimpleSection).template = "amlogic/other_kvm"
|
||||||
|
end
|
||||||
|
|
||||||
|
return b, c, x
|
||||||
|
|
|
@ -0,0 +1,48 @@
|
||||||
|
<style>
|
||||||
|
.NewsTdHeight{ line-height:32px; }
|
||||||
|
.imgLeft{ float:left; margin-right:10px; vertical-align:middle; }
|
||||||
|
.contentRight{ align-items: center; }
|
||||||
|
</style>
|
||||||
|
<fieldset class="cbi-section">
|
||||||
|
<table width="100%" class="NewsTdHeight">
|
||||||
|
<tr><td width="100%" align="left">
|
||||||
|
<input class="cbi-button cbi-button-save" type="button" value="<%:Switch System%>" onclick="switchopenwrt(this)" />
|
||||||
|
<p style="display:none">
|
||||||
|
<img id="img_loading" style="display:block" src="<%=resource%>/amlogic/loading.gif" alt="<%:Loading%>" class="imgLeft" />
|
||||||
|
<img id="img_switch" style="display:none" src="<%=resource%>/amlogic/switch.png" alt="<%:PowerOff%>" class="imgLeft" />
|
||||||
|
<span id="msg_switch" class="contentRight"><%:System is switching...%></span>
|
||||||
|
</p>
|
||||||
|
</td></tr>
|
||||||
|
</table>
|
||||||
|
</fieldset>
|
||||||
|
|
||||||
|
<script type="text/javascript">//<![CDATA[
|
||||||
|
|
||||||
|
function status_check() {
|
||||||
|
var time = 5;
|
||||||
|
var img_loading = document.getElementById("img_loading");
|
||||||
|
var img_switch = document.getElementById("img_switch");
|
||||||
|
var msg = document.getElementById("msg_switch");
|
||||||
|
var set = setInterval(function() {
|
||||||
|
time--;
|
||||||
|
msg.innerHTML = "<%:Waiting for system switching...%>";
|
||||||
|
if(time === 0) {
|
||||||
|
img_loading.style.display = 'none';
|
||||||
|
img_switch.style.display = 'block';
|
||||||
|
msg.innerHTML = "<%:System switchover succeeded, restarting...%>";
|
||||||
|
clearInterval(set);
|
||||||
|
}
|
||||||
|
}, 1000);
|
||||||
|
}
|
||||||
|
|
||||||
|
function switchopenwrt(btn) {
|
||||||
|
if (confirm('<%:Are you sure you want to switch systems?%>') != true) { return false; }
|
||||||
|
|
||||||
|
btn.style.display = 'none';
|
||||||
|
document.getElementById('msg_switch').parentNode.style.display = 'block';
|
||||||
|
|
||||||
|
(new XHR()).post('<%=luci.dispatcher.build_url("admin", "system", "amlogic", "start_switch")%>', { token: '<%=token%>' }, status_check);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//]]></script>
|
|
@ -284,6 +284,27 @@ msgstr "瑞芯微 3328 -- [ 贝壳云、我家云 ]"
|
||||||
msgid "Used in KVM ----- [ Can be used in KVM virtual machine of Armbian system. ]"
|
msgid "Used in KVM ----- [ Can be used in KVM virtual machine of Armbian system. ]"
|
||||||
msgstr "KVM 中使用 --- [ 可以在 Armbia 系统的 KVM 虚拟机中使用。 ]"
|
msgstr "KVM 中使用 --- [ 可以在 Armbia 系统的 KVM 虚拟机中使用。 ]"
|
||||||
|
|
||||||
|
msgid "KVM dual system switching"
|
||||||
|
msgstr "KVM 双系统切换"
|
||||||
|
|
||||||
|
msgid "You can freely switch between KVM dual partitions, using OpenWrt systems in different partitions."
|
||||||
|
msgstr "您可以在 KVM 双分区之间自由切换,使用不同分区中的 OpenWrt 系统。"
|
||||||
|
|
||||||
|
msgid "Switch System"
|
||||||
|
msgstr "切换系统"
|
||||||
|
|
||||||
|
msgid "System is switching..."
|
||||||
|
msgstr "系统切换中..."
|
||||||
|
|
||||||
|
msgid "Waiting for system switching..."
|
||||||
|
msgstr "等待系统完成切换..."
|
||||||
|
|
||||||
|
msgid "System switchover succeeded, restarting..."
|
||||||
|
msgstr "系统切换成功,正在重启..."
|
||||||
|
|
||||||
|
msgid "Are you sure you want to switch systems?"
|
||||||
|
msgstr "你确定要切换系统吗?"
|
||||||
|
|
||||||
msgid "Install Ipk"
|
msgid "Install Ipk"
|
||||||
msgstr "安装Ipk"
|
msgstr "安装Ipk"
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
# Copyright (C) 2021-- https://github.com/ophub/luci-app-amlogic
|
# Copyright (C) 2021-- https://github.com/ophub/luci-app-amlogic
|
||||||
#======================================================================
|
#======================================================================
|
||||||
|
|
||||||
VERSION="v1.2"
|
VERSION="v1.3"
|
||||||
ZSTD_LEVEL=6
|
ZSTD_LEVEL=6
|
||||||
SNAPSHOT_PRESTR=".snapshots/"
|
SNAPSHOT_PRESTR=".snapshots/"
|
||||||
BACKUP_DIR="/.reserved"
|
BACKUP_DIR="/.reserved"
|
||||||
|
@ -81,8 +81,13 @@ elif dmesg | grep 'rockchip' >/dev/null 2>&1; then
|
||||||
elif dmesg | grep 'sun50i-h6' >/dev/null 2>&1; then
|
elif dmesg | grep 'sun50i-h6' >/dev/null 2>&1; then
|
||||||
PLATFORM="allwinner"
|
PLATFORM="allwinner"
|
||||||
else
|
else
|
||||||
echo "Unknown platform, only support amlogic or rockchip or allwinner h6!"
|
source /etc/flippy-openwrt-release
|
||||||
exit 1
|
case $PLATFORM in
|
||||||
|
amlogic|rockchip|allwinner|qemu-aarch64) : ;;
|
||||||
|
*) echo "Unknown platform, only support amlogic or rockchip or allwinner h6 or qemu-aarch64!"
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
||||||
backup() {
|
backup() {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"PO-Revision-Date: 2022-02-24 06:56+0000\n"
|
"PO-Revision-Date: 2022-07-21 13:22+0000\n"
|
||||||
"Last-Translator: ssantos <ssantos@web.de>\n"
|
"Last-Translator: ssantos <ssantos@web.de>\n"
|
||||||
"Language-Team: German <https://hosted.weblate.org/projects/openwrt/"
|
"Language-Team: German <https://hosted.weblate.org/projects/openwrt/"
|
||||||
"luciapplicationsnft-qos/de/>\n"
|
"luciapplicationsnft-qos/de/>\n"
|
||||||
|
@ -8,7 +8,7 @@ msgstr ""
|
||||||
"Content-Type: text/plain; charset=UTF-8\n"
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
"Content-Transfer-Encoding: 8bit\n"
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
||||||
"X-Generator: Weblate 4.11-dev\n"
|
"X-Generator: Weblate 4.14-dev\n"
|
||||||
|
|
||||||
#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:136
|
#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:136
|
||||||
#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:155
|
#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:155
|
||||||
|
@ -121,12 +121,14 @@ msgid "Limit Enable"
|
||||||
msgstr "Limit aktivieren"
|
msgstr "Limit aktivieren"
|
||||||
|
|
||||||
#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:33
|
#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:33
|
||||||
|
#, fuzzy
|
||||||
msgid "Limit Rate by IP Address"
|
msgid "Limit Rate by IP Address"
|
||||||
msgstr ""
|
msgstr "Quote pro IP-Adresse begrenzen"
|
||||||
|
|
||||||
#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:34
|
#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:34
|
||||||
|
#, fuzzy
|
||||||
msgid "Limit Rate by Mac Address"
|
msgid "Limit Rate by Mac Address"
|
||||||
msgstr ""
|
msgstr "Quote pro MAC-Adresse begrenzen"
|
||||||
|
|
||||||
#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:239
|
#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:239
|
||||||
msgid "Limit Traffic Rate By Mac Address"
|
msgid "Limit Traffic Rate By Mac Address"
|
||||||
|
@ -236,7 +238,7 @@ msgstr ""
|
||||||
|
|
||||||
#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:35
|
#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:35
|
||||||
msgid "Traffic Priority"
|
msgid "Traffic Priority"
|
||||||
msgstr ""
|
msgstr "Traffic-Priorität"
|
||||||
|
|
||||||
#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:199
|
#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:199
|
||||||
msgid "Traffic Priority Settings"
|
msgid "Traffic Priority Settings"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"PO-Revision-Date: 2020-09-18 18:36+0000\n"
|
"PO-Revision-Date: 2022-07-20 17:18+0000\n"
|
||||||
"Last-Translator: ssantos <ssantos@web.de>\n"
|
"Last-Translator: ssantos <ssantos@web.de>\n"
|
||||||
"Language-Team: Portuguese <https://hosted.weblate.org/projects/openwrt/"
|
"Language-Team: Portuguese <https://hosted.weblate.org/projects/openwrt/"
|
||||||
"luciapplicationsnft-qos/pt/>\n"
|
"luciapplicationsnft-qos/pt/>\n"
|
||||||
|
@ -8,7 +8,7 @@ msgstr ""
|
||||||
"Content-Type: text/plain; charset=UTF-8\n"
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
"Content-Transfer-Encoding: 8bit\n"
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
"Plural-Forms: nplurals=2; plural=n > 1;\n"
|
"Plural-Forms: nplurals=2; plural=n > 1;\n"
|
||||||
"X-Generator: Weblate 4.3-dev\n"
|
"X-Generator: Weblate 4.14-dev\n"
|
||||||
|
|
||||||
#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:136
|
#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:136
|
||||||
#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:155
|
#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:155
|
||||||
|
@ -122,11 +122,11 @@ msgstr "Limitar Ativação"
|
||||||
|
|
||||||
#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:33
|
#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:33
|
||||||
msgid "Limit Rate by IP Address"
|
msgid "Limit Rate by IP Address"
|
||||||
msgstr ""
|
msgstr "Limite da taxa por endereço IP"
|
||||||
|
|
||||||
#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:34
|
#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:34
|
||||||
msgid "Limit Rate by Mac Address"
|
msgid "Limit Rate by Mac Address"
|
||||||
msgstr ""
|
msgstr "Limite da taxa por endereço Mac"
|
||||||
|
|
||||||
#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:239
|
#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:239
|
||||||
msgid "Limit Traffic Rate By Mac Address"
|
msgid "Limit Traffic Rate By Mac Address"
|
||||||
|
@ -233,7 +233,7 @@ msgstr ""
|
||||||
|
|
||||||
#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:35
|
#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:35
|
||||||
msgid "Traffic Priority"
|
msgid "Traffic Priority"
|
||||||
msgstr ""
|
msgstr "Prioridade de tráfego"
|
||||||
|
|
||||||
#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:199
|
#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:199
|
||||||
msgid "Traffic Priority Settings"
|
msgid "Traffic Priority Settings"
|
||||||
|
|
Loading…
Reference in New Issue