2020-03-03 20:52:31

This commit is contained in:
monlor
2020-03-03 20:52:31 +08:00
parent 4fcbb64deb
commit 7698e9f11f

View File

@@ -71,8 +71,8 @@ mkdir ${mbroot}/var/run
touch ${mbroot}/config/applist.txt #初始化插件列表 touch ${mbroot}/config/applist.txt #初始化插件列表
cat ${mbroot}/config/mixbox.uci| while read line; do cat ${mbroot}/config/mixbox.uci| while read line; do
[ -z "$line" ] && continue [ -z "$line" ] && continue
local ucikey="$(echo $line | cut -d'=' -f1)" ucikey="$(echo $line | cut -d'=' -f1)"
local ucivalue="$(echo $line | cut -d'=' -f2 | sed -e 's/\"//g')" ucivalue="$(echo $line | cut -d'=' -f2 | sed -e 's/\"//g')"
${mbroot}/bin/mbdb set mixbox.main."$ucikey"="$ucivalue" ${mbroot}/bin/mbdb set mixbox.main."$ucikey"="$ucivalue"
done done
${mbroot}/bin/mbdb set mixbox.main.mbdisk="${mbdisk}" ${mbroot}/bin/mbdb set mixbox.main.mbdisk="${mbdisk}"