del some method

This commit is contained in:
悟空的日常镜像仓库 2024-02-25 21:59:38 +08:00
parent fc854091c1
commit 7c21f28015
7 changed files with 2 additions and 16 deletions

BIN
.DS_Store vendored

Binary file not shown.

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
.DS_Store

BIN
shells/.DS_Store vendored

Binary file not shown.

View File

@ -261,7 +261,6 @@ show_menu() {
echo "* Developed by @wukongdaily "
echo "**********************************************************************"
echo
echo "$(check_github_connected)"
echo "$(get_status)"
echo "$(get_tvbox_model_name)"
echo "$(get_tvbox_timezone)"

View File

@ -384,7 +384,6 @@ show_menu() {
echo "**********************************************************************"
echo
echo "* 当前的路由器型号: $(get_router_name)"
echo "$(check_github_connected)"
echo "$(get_status)"
echo "$(get_tvbox_model_name)"
echo "$(get_tvbox_timezone)"

View File

@ -352,7 +352,6 @@ show_menu() {
echo "* Developed by @wukongdaily "
echo "**********************************************************************"
echo
echo "$(check_github_connected)"
echo "$(get_status)"
echo "$(get_tvbox_model_name)"
echo "$(get_tvbox_timezone)"

View File

@ -494,19 +494,6 @@ get_tvbox_timezone() {
fi
}
# 能否访问Github
check_github_connected() {
# Ping GitHub域名并提取时间
ping_time=$(ping -c 1 raw.githubusercontent.com | grep 'time=' | awk -F'time=' '{print $2}' | awk '{print $1}')
if [ -n "$ping_time" ]; then
echo -e "* 当前路由器访问Github延时:${BLUE}${ping_time}ms${NC}"
else
echo -e "* 当前路由器访问Github延时:${RED}超时${NC}"
fi
}
# 安装mix apps 用于显示全部app
install_mixapps() {
local xapk_download_url="https://github.com/wukongdaily/tvhelper/raw/master/apks/mix.xapk"