mirror of
https://github.com/monlor/MIXBOX-ARCHIVE.git
synced 2026-03-10 23:41:27 +00:00
moxbox init
This commit is contained in:
7
apps/entware/config/entware.uci
Normal file
7
apps/entware/config/entware.uci
Normal file
@@ -0,0 +1,7 @@
|
||||
service=Entware
|
||||
appname="entware"
|
||||
needver="0.0.1"
|
||||
supports="linux_arm,linux_mips,linux_x86_64"
|
||||
newinfo="修复了ONMP无法使用的问题"
|
||||
appinfo="一款开源且强大的包管理工具,许多功能都通过它来实现"
|
||||
version="0.0.4"
|
||||
21
apps/entware/config/mixbox.conf
Normal file
21
apps/entware/config/mixbox.conf
Normal file
@@ -0,0 +1,21 @@
|
||||
#------------------【Entware】--------------------
|
||||
entware() {
|
||||
|
||||
eval `mbdb export entware`
|
||||
source /etc/mixbox/bin/base
|
||||
echo "********* $service ***********"
|
||||
echo "[${appinfo}]"
|
||||
readsh "启动${appname}服务[1/0] " "enable" "1"
|
||||
if [ "$enable" == '1' ]; then
|
||||
readsh "请输入${appname}安装路径" "path" "$mbdisk/.Entware"
|
||||
echo "安装ONMP后,请勿安装工具箱插件HttpFile和KodExplorer"
|
||||
read -p "启动ONMP安装程序?[1/0] " res
|
||||
[ "$res" == '1' ] && mbdb set $appname.main.onmp="1" || mbdb set $appname.main.onmp="0"
|
||||
|
||||
${mbroot}/apps/${appname}/scripts/${appname}.sh restart
|
||||
else
|
||||
${mbroot}/apps/${appname}/scripts/${appname}.sh stop
|
||||
fi
|
||||
|
||||
}
|
||||
#------------------【Entware】--------------------
|
||||
Reference in New Issue
Block a user