update-12.04
This commit is contained in:
parent
ddc003153a
commit
4bd96afe85
|
@ -976,6 +976,11 @@ gen_serv_include(){
|
||||||
|
|
||||||
start_server(){
|
start_server(){
|
||||||
[ $(uci_get_by_type server_global enable_server 0) = 0 ] && return
|
[ $(uci_get_by_type server_global enable_server 0) = 0 ] && return
|
||||||
|
if [[ "$(uci -q get smartdns.@smartdns[0].enabled)" == "1" ]]; then
|
||||||
|
uci -q del smartdns.@smartdns[0].enabled
|
||||||
|
uci commit smartdns
|
||||||
|
/etc/init.d/smartdns stop 2>/dev/null
|
||||||
|
fi
|
||||||
mkdir -p $VAR
|
mkdir -p $VAR
|
||||||
config_load $NAME
|
config_load $NAME
|
||||||
config_foreach run_server server_config
|
config_foreach run_server server_config
|
||||||
|
@ -990,11 +995,6 @@ start_monitor(){
|
||||||
}
|
}
|
||||||
|
|
||||||
start(){
|
start(){
|
||||||
if [[ "$(uci -q get smartdns.@smartdns[0].enabled)" == "1" ]]; then
|
|
||||||
uci -q del smartdns.@smartdns[0].enabled
|
|
||||||
uci commit smartdns
|
|
||||||
/etc/init.d/smartdns stop 2>/dev/null
|
|
||||||
fi
|
|
||||||
touch $LOC
|
touch $LOC
|
||||||
if [ -n "$switch_server" ];then
|
if [ -n "$switch_server" ];then
|
||||||
GLOBAL_SERVER=$switch_server
|
GLOBAL_SERVER=$switch_server
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
zh-cn
|
|
@ -0,0 +1 @@
|
||||||
|
zh-cn
|
File diff suppressed because one or more lines are too long
|
@ -142,12 +142,6 @@ local status = api.uci_get_type("global_other", "status", "")
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
<div class="cbi-value">
|
|
||||||
<label class="cbi-value-title"></label>
|
|
||||||
<div class="cbi-value-field">
|
|
||||||
<iframe src="https://ip.skk.moe/simple" style="width: 100%; border: 0"></iframe></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
|
|
|
@ -1,34 +0,0 @@
|
||||||
# nas-packages-luci
|
|
||||||
luci for [nas-packages](https://github.com/linkease/nas-packages)
|
|
||||||
|
|
||||||
## 使用方法
|
|
||||||
|
|
||||||
### 增加feed源
|
|
||||||
|
|
||||||
```shell
|
|
||||||
echo >> feeds.conf.default
|
|
||||||
echo 'src-git nas https://github.com/linkease/nas-packages.git;master' >> feeds.conf.default
|
|
||||||
echo 'src-git nas_luci https://github.com/linkease/nas-packages-luci.git;main' >> feeds.conf.default
|
|
||||||
./scripts/feeds update nas nas_luci
|
|
||||||
./scripts/feeds install -a -p nas
|
|
||||||
./scripts/feeds install -a -p nas_luci
|
|
||||||
```
|
|
||||||
|
|
||||||
### 集成软件包
|
|
||||||
|
|
||||||
```shell
|
|
||||||
make menuconfig
|
|
||||||
```
|
|
||||||
|
|
||||||
选择软件包
|
|
||||||
```plain
|
|
||||||
LuCI --->
|
|
||||||
3. Applications --->
|
|
||||||
<*> luci-app-ddnsto.................................. LuCI support for ddnsto
|
|
||||||
<*> luci-app-linkease.................................. LuCI support for linkease
|
|
||||||
```
|
|
||||||
|
|
||||||
### 构建固件
|
|
||||||
```shell
|
|
||||||
make
|
|
||||||
```
|
|
Loading…
Reference in New Issue