新增单独安装istore的选项
This commit is contained in:
parent
d4473d8e0b
commit
e1a5b19cb2
37
be3600.sh
37
be3600.sh
@ -69,34 +69,19 @@ do_istore() {
|
|||||||
|
|
||||||
#添加istore软件源
|
#添加istore软件源
|
||||||
wget -O /etc/opkg/customfeeds.conf https://cafe.cpolar.top/wkdaily/be3600/raw/branch/master/64bit/customfeeds.conf
|
wget -O /etc/opkg/customfeeds.conf https://cafe.cpolar.top/wkdaily/be3600/raw/branch/master/64bit/customfeeds.conf
|
||||||
opkg update
|
|
||||||
|
#调整a53架构优先级
|
||||||
|
add_arch_64bit
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# 首页和网络向导
|
# 首页和网络向导
|
||||||
do_quickstart() {
|
do_quickstart() {
|
||||||
# 调整架构信息
|
|
||||||
mkdir -p /etc/opkg
|
|
||||||
touch /etc/opkg/arch.conf
|
|
||||||
cat <<EOF >/tmp/arch.conf.fake
|
|
||||||
arch all 1
|
|
||||||
arch noarch 1
|
|
||||||
arch aarch64_cortex-a53 5
|
|
||||||
arch aarch64_cortex-a53_neon-vfpv4 10
|
|
||||||
EOF
|
|
||||||
mount --bind /tmp/arch.conf.fake /etc/opkg/arch.conf
|
|
||||||
|
|
||||||
download_lib_quickstart
|
download_lib_quickstart
|
||||||
download_luci_quickstart
|
download_luci_quickstart
|
||||||
opkg install /tmp/ipk_downloads/*.ipk
|
opkg install /tmp/ipk_downloads/*.ipk
|
||||||
|
|
||||||
### 恢复架构信息
|
|
||||||
umount /etc/opkg/arch.conf
|
|
||||||
rm /etc/opkg/arch.conf
|
|
||||||
|
|
||||||
green "首页风格安装完毕!请使用8080端口访问luci界面:http://192.168.8.1:8080"
|
green "首页风格安装完毕!请使用8080端口访问luci界面:http://192.168.8.1:8080"
|
||||||
green "作者更多动态务必收藏:https://tvhelper.cpolar.top/"
|
green "作者更多动态务必收藏:https://tvhelper.cpolar.top/"
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
download_luci_quickstart() {
|
download_luci_quickstart() {
|
||||||
@ -279,13 +264,13 @@ recovery() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
add_arch_64bit(){
|
add_arch_64bit(){
|
||||||
wget -O /etc/opkg/arch.conf https://cafe.cpolar.top/wkdaily/be3600/raw/branch/master/64bit/arch.conf
|
if ! wget -O /etc/opkg/arch.conf https://cafe.cpolar.top/wkdaily/be3600/raw/branch/master/64bit/arch.conf; then
|
||||||
#mkdir -p /tmp/assistant
|
echo "下载 arch.conf 失败,脚本终止。"
|
||||||
#cd /tmp/assistant
|
exit 1
|
||||||
#wget -O luci-app-fileassistant.ipk https://cafe.cpolar.top/wkdaily/be3600/raw/branch/master/64bit/luci-app-fileassistant.ipk
|
fi
|
||||||
#opkg install *.ipk --force-depends
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
while true; do
|
while true; do
|
||||||
clear
|
clear
|
||||||
gl_name=$(get_router_name)
|
gl_name=$(get_router_name)
|
||||||
@ -304,6 +289,8 @@ while true; do
|
|||||||
echo
|
echo
|
||||||
light_magenta " 4. 安装argon紫色主题"
|
light_magenta " 4. 安装argon紫色主题"
|
||||||
echo
|
echo
|
||||||
|
light_magenta " 5. 单独安装iStore商店"
|
||||||
|
echo
|
||||||
echo " Q. 退出本程序"
|
echo " Q. 退出本程序"
|
||||||
echo
|
echo
|
||||||
read -p "请选择一个选项: " choice
|
read -p "请选择一个选项: " choice
|
||||||
@ -328,11 +315,11 @@ while true; do
|
|||||||
do_istore
|
do_istore
|
||||||
#安装首页和网络向导
|
#安装首页和网络向导
|
||||||
do_quickstart
|
do_quickstart
|
||||||
#调整a53架构优先级
|
|
||||||
add_arch_64bit
|
|
||||||
;;
|
;;
|
||||||
4) do_install_argon_skin
|
4) do_install_argon_skin
|
||||||
;;
|
;;
|
||||||
|
5) do_istore
|
||||||
|
;;
|
||||||
q | Q)
|
q | Q)
|
||||||
echo "退出"
|
echo "退出"
|
||||||
exit 0
|
exit 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user