Skip to content
This repository has been archived by the owner on Apr 26, 2023. It is now read-only.

Commit

Permalink
fix: its-pointless repo
Browse files Browse the repository at this point in the history
Signed-off-by: 2096779623 <admin@utermux.dev>
  • Loading branch information
2096779623 committed Jun 18, 2022
1 parent 2f622ae commit 576d460
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 18 deletions.
25 changes: 7 additions & 18 deletions share/old-version/share/termux/mirror
Original file line number Diff line number Diff line change
Expand Up @@ -56,27 +56,16 @@ china_university_mirror_station() {
########################
case "${SOURCES_LIST}" in
0 | "") tmoe_sources_list_manager ;;
1)
POINTLESS_LIST="${PREFIX}/etc/apt/sources.list.d/pointless.list"
[[ ! -s ${POINTLESS_LIST} ]] || do_you_want_to_continue
ANDROID_VERSION=$(getprop ro.build.version.release)
if [ "$ANDROID_VERSION" -ge "7" ]; then
echo "deb https://its-pointless.github.io/files/24 termux extras" > ${POINTLESS_LIST}
curl -sL https://its-pointless.github.io/pointless.gpg | apt-key add -
else
echo "deb https://its-pointless.github.io/files/21 termux extras" > $PREFIX/etc/apt/sources.list.d/pointless.list
curl -sL https://its-pointless.github.io/pointless.gpg | apt-key add -
fi
do_you_want_to_continue
[[ ! -s ${POINTLESS_LIST} ]] || cat ${POINTLESS_LIST}
press_enter_to_return
worldwide_mirror_station
;;
1) SOURCE_MIRROR_STATION='mirrors.bfsu.edu.cn/termux/apt' ;;
2) SOURCE_MIRROR_STATION='mirrors.cloud.tencent.com/termux/apt' ;;
3) SOURCE_MIRROR_STATION='mirrors.tuna.tsinghua.edu.cn/termux/apt' ;;
4) SOURCE_MIRROR_STATION='mirrors.ustc.edu.cn/termux/apt' ;;
esac
new_termux_mirror_source_format
######################################
modify_android_termux_mirror_sources_list
press_enter_to_return
worldwide_mirror_station
china_university_mirror_station
}
#############
worldwide_mirror_station() {
Expand All @@ -97,7 +86,7 @@ worldwide_mirror_station() {
POINTLESS_LIST="${PREFIX}/etc/apt/sources.list.d/pointless.list"
[[ ! -s ${POINTLESS_LIST} ]] || do_you_want_to_continue
cd ${TMPDIR}
curl -Lo .setup-pointless-repo.sh https://its-pointless.github.io/setup-pointless-repo.sh
aria2c --console-log-level=warn --no-conf --allow-overwrite=true -d ${TMPDIR} -o '.setup-pointless-repo.sh' 'https://raw.githubusercontent.com/2moe/tmoe/master/share/old-version/share/termux/setup-pointless-repo'
if [ $(command -v bat) ]; then
bat -ppn .setup-pointless-repo.sh
else
Expand Down
12 changes: 12 additions & 0 deletions share/old-version/share/termux/setup-pointless-repo
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/data/data/com.termux/files/usr/bin/sh
pkg up -y
pkg upgr -y
pkg i coreutils gnupg -y
mkdir -p $PREFIX/etc/apt/sources.list.d
ANDROID_VERSION=$(getprop ro.build.version.release)
if [ "$ANDROID_VERSION" -ge "7" ]; then
echo "deb [trusted=yes] https://its-pointless.github.io/files/24 termux extras" > $PREFIX/etc/apt/sources.list.d/pointless.list
else
echo "deb [trusted=yes] https://its-pointless.github.io/files/21 termux extras" > $PREFIX/etc/apt/sources.list.d/pointless.list
fi
pkg up -y

0 comments on commit 576d460

Please sign in to comment.