mirror of
https://github.com/monlor/MIXBOX-ARCHIVE.git
synced 2026-03-10 23:41:27 +00:00
31 lines
1.4 KiB
Plaintext
31 lines
1.4 KiB
Plaintext
#------------------【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】--------------------
|