remove duplicated files
This commit is contained in:
parent
88bef44b4a
commit
f7e02ac2d6
@ -1,22 +0,0 @@
|
||||
#!/bin/sh /etc/rc.common
|
||||
# Copyright (C) 2016 OpenWrt.org
|
||||
|
||||
START=49
|
||||
|
||||
list_langs() {
|
||||
cd /usr/lib/lua/luci/i18n
|
||||
ls | sed -e 's/.*\.\([^\.]*\)\.lmo/\1/g' | sort -u
|
||||
}
|
||||
|
||||
boot() {
|
||||
local lang
|
||||
local name
|
||||
for lang in `list_langs`
|
||||
do
|
||||
if ! uci get luci.languages.${lang//-/_} >/dev/null 2>&1; then
|
||||
name=`luci18n2name $lang`
|
||||
uci set "luci.languages.${lang//-/_}=${name:-$lang}"
|
||||
fi
|
||||
done
|
||||
uci changes luci | grep -Fqm1 luci 2>/dev/null && uci commit luci >/dev/null 2>&1
|
||||
}
|
||||
@ -1,45 +0,0 @@
|
||||
#!/bin/sh
|
||||
# author: jjm2473
|
||||
|
||||
toname() {
|
||||
local lang_ar="العربية (Arabic)"
|
||||
local lang_bg="български (Bulgarian)"
|
||||
local lang_bn="বাংলা (Bengali)"
|
||||
local lang_ca="Català (Catalan)"
|
||||
local lang_cs="Čeština (Czech)"
|
||||
local lang_da="Dansk (Danish)"
|
||||
local lang_de="Deutsch (German)"
|
||||
local lang_el="Ελληνικά (Greek)"
|
||||
local lang_en="English"
|
||||
local lang_es="Español (Spanish)"
|
||||
local lang_fi="Suomi (Finnish)"
|
||||
local lang_fr="Français (French)"
|
||||
local lang_he="עִבְרִית (Hebrew)"
|
||||
local lang_hi="हिंदी (Hindi)"
|
||||
local lang_hu="Magyar (Hungarian)"
|
||||
local lang_it="Italiano (Italian)"
|
||||
local lang_ja="日本語 (Japanese)"
|
||||
local lang_ko="한국어 (Korean)"
|
||||
local lang_mr="Marāṭhī (Marathi)"
|
||||
local lang_ms="Bahasa Melayu (Malay)"
|
||||
local lang_no="Norsk (Norwegian)"
|
||||
local lang_nl="Nederlands (Dutch)"
|
||||
local lang_pl="Polski (Polish)"
|
||||
local lang_pt_br="Português do Brasil (Brazilian Portuguese)"
|
||||
local lang_pt="Português (Portuguese)"
|
||||
local lang_ro="Română (Romanian)"
|
||||
local lang_ru="Русский (Russian)"
|
||||
local lang_sk="Slovenčina (Slovak)"
|
||||
local lang_sv="Svenska (Swedish)"
|
||||
local lang_tr="Türkçe (Turkish)"
|
||||
local lang_uk="Українська (Ukrainian)"
|
||||
local lang_vi="Tiếng Việt (Vietnamese)"
|
||||
local lang_zh_cn="简体中文 (Chinese Simplified)"
|
||||
local lang_zh_tw="繁體中文 (Chinese Traditional)"
|
||||
|
||||
eval "[ -n \"\${lang_$1}\" ] && echo \${lang_$1}"
|
||||
}
|
||||
|
||||
if [ -n "$1" ]; then
|
||||
toname ${1//-/_}
|
||||
fi
|
||||
@ -1,10 +0,0 @@
|
||||
-- Copyright 2022 jjm2473 <jjm2473@gmail.com>
|
||||
-- Licensed to the public under the Apache License 2.0.
|
||||
|
||||
module("luci.controller.admin.compat", package.seeall)
|
||||
|
||||
function action_fatab()
|
||||
local dsp = require "luci.dispatcher"
|
||||
|
||||
luci.http.redirect(dsp.build_url("admin/system/mounts"))
|
||||
end
|
||||
@ -1,9 +0,0 @@
|
||||
{
|
||||
"admin/system/fstab": {
|
||||
"action": {
|
||||
"type": "call",
|
||||
"module": "luci.controller.admin.compat",
|
||||
"function": "action_fatab"
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user