2018-12-31

This commit is contained in:
monlor
2018-12-31 23:47:47 +08:00
commit 3ae56f5e6e
1091 changed files with 173538 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
service="MIWIFI"
appname="miwifi"
needver="0.0.1"
supports="linux_arm,linux_mips"
appinfo="小米路由器系统管理修改samba禁用系统更新等"
newinfo=""
version="0.0.3"

View File

@@ -0,0 +1,30 @@
#------------------【MIWIFI】--------------------
miwifi() {
eval `mbdb export miwifi`
source /etc/mixbox/bin/base
uciset="mbdb set $appname.main"
echo "********* $service ***********"
echo "[${appinfo}]"
readsh "启动${appname}服务[1/0] " "enable" "1"
if [ "$enable" == '1' ]; then
# Scripts Here
read -p "修改小米路由器samba路径($samba_path)[1/0] " res
if [ "$res" = '1' ]; then
read -p "请输入samba路径(回车即可恢复默认)" res
mbdb set $appname.main.samba_path="$res"
fi
read -p "禁用小米路由器更新($miwifi_noupdate)[1/0] " res
[ -n "$res" ] && mbdb set $appname.main.miwifi_noupdate="$res"
read -p "禁用小米路由器自带的迅雷程序($xunlei_disable)[1/0] " res
[ -n "$res" ] && mbdb set $appname.main.xunlei_disable="$res"
read -p "是否修复小米路由器远程访问端口8098($remote_web)[1/0] " res
[ -n "$res" ] && mbdb set $appname.main.remote_web="$res"
${mbroot}/apps/${appname}/scripts/${appname}.sh restart
else
${mbroot}/apps/${appname}/scripts/${appname}.sh stop
fi
}
#------------------【MIWIFI】--------------------

View File

@@ -0,0 +1 @@
1.0.7