增加单独安装iStore的shell
This commit is contained in:
parent
6e884dcfb3
commit
28fc496d6f
@ -25,7 +25,7 @@ install_istore() {
|
|||||||
uci set luci.main.mediaurlbase='/luci-static/argon'
|
uci set luci.main.mediaurlbase='/luci-static/argon'
|
||||||
uci set luci.main.lang='zh_cn'
|
uci set luci.main.lang='zh_cn'
|
||||||
uci commit
|
uci commit
|
||||||
##安装完毕之后 还原软件源
|
##安装完毕之后 还原软件源
|
||||||
setup_software_source 0
|
setup_software_source 0
|
||||||
|
|
||||||
do_istore
|
do_istore
|
||||||
@ -40,7 +40,6 @@ install_istore() {
|
|||||||
if ! grep -q " like iStoreOS" /tmp/sysinfo/model; then
|
if ! grep -q " like iStoreOS" /tmp/sysinfo/model; then
|
||||||
sed -i '1s/$/ like iStoreOS/' /tmp/sysinfo/model
|
sed -i '1s/$/ like iStoreOS/' /tmp/sysinfo/model
|
||||||
fi
|
fi
|
||||||
|
|
||||||
}
|
}
|
||||||
# 安装iStore 参考 https://github.com/linkease/istore
|
# 安装iStore 参考 https://github.com/linkease/istore
|
||||||
do_istore() {
|
do_istore() {
|
||||||
|
26
reinstall_istore.sh
Normal file
26
reinstall_istore.sh
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
## 安装iStore 参考 https://github.com/linkease/istore
|
||||||
|
ISTORE_REPO=https://istore.linkease.com/repo/all/store
|
||||||
|
FCURL="curl --fail --show-error"
|
||||||
|
|
||||||
|
curl -V >/dev/null 2>&1 || {
|
||||||
|
echo "prereq: install curl"
|
||||||
|
opkg info curl | grep -Fqm1 curl || opkg update
|
||||||
|
opkg install curl
|
||||||
|
}
|
||||||
|
|
||||||
|
IPK=$($FCURL "$ISTORE_REPO/Packages.gz" | zcat | grep -m1 '^Filename: luci-app-store.*\.ipk$' | sed -n -e 's/^Filename: \(.\+\)$/\1/p')
|
||||||
|
|
||||||
|
[ -n "$IPK" ] || exit 1
|
||||||
|
|
||||||
|
$FCURL "$ISTORE_REPO/$IPK" | tar -xzO ./data.tar.gz | tar -xzO ./bin/is-opkg >/tmp/is-opkg
|
||||||
|
|
||||||
|
[ -s "/tmp/is-opkg" ] || exit 1
|
||||||
|
|
||||||
|
chmod 755 /tmp/is-opkg
|
||||||
|
/tmp/is-opkg update
|
||||||
|
# /tmp/is-opkg install taskd
|
||||||
|
/tmp/is-opkg opkg install --force-reinstall luci-lib-taskd luci-lib-xterm
|
||||||
|
/tmp/is-opkg opkg install --force-reinstall luci-app-store || exit $?
|
||||||
|
[ -s "/etc/init.d/tasks" ] || /tmp/is-opkg opkg install --force-reinstall taskd
|
||||||
|
[ -s "/usr/lib/lua/luci/cbi.lua" ] || /tmp/is-opkg opkg install luci-compat >/dev/null 2>&1
|
Loading…
Reference in New Issue
Block a user