From 7c21f28015ec5b1673f17ea33ad43ce80e291499 Mon Sep 17 00:00:00 2001 From: wukongdaily <2666180@gmail.com> Date: Sun, 25 Feb 2024 21:59:38 +0800 Subject: [PATCH] del some method --- .DS_Store | Bin 8196 -> 6148 bytes .gitignore | 2 ++ shells/.DS_Store | Bin 6148 -> 6148 bytes shells/box.sh | 1 - shells/kodi.sh | 1 - shells/sony.sh | 1 - shells/tv.sh | 13 ------------- 7 files changed, 2 insertions(+), 16 deletions(-) create mode 100644 .gitignore diff --git a/.DS_Store b/.DS_Store index 1294582b39a0c058eb8a200c1be26596a692007e..2a979dec8aebf825a49e24c9afe4abdb4b8e1a5c 100644 GIT binary patch delta 132 zcmZp1XfcprU|?W$DortDU=RQ@Ie-{MGjUEV6q~50D9R3!2aDw}6epDz7bNB6Cv7ZT z&dA8V`HA3k#*HN@EQ{GWI0Tu23V}d?8%Vf<4A@xsoq009j3dYfkP$2(nh9bBSZs4V H&m3j|>UkAk delta 619 zcmZoMXmOBWU|?W$DortDU;r^WfEYvza8E20o2aKKDh`qd@)?rKiwlx+@{@r49h(<2 zr?G6_z--IBn4N=TVgm~|NEr)5B0~W~_GBrhCJ|Eu104ku3!_>cg=$M95Zl;n@&+d3 zdZ;3X;+%BD;N<+=0-#0)R@w%FD^mO9u)9JqDD>X2@qqVaP;w5CfA$1F{^NgE)R2f;tGQH#Z-}K^XFI z2eAW9WnfZZ*v!K;ospA;p%`d)9z*418Kwpib2C$5IGLDY2{WiNWGC`*E69VL2$e%~ zB5&GJs1xDxC{DzXhdU8yC?EF$APEc_uwFifO5`xx{7^)hd13>PATvk}Fu8C830F{( e0Va#@%#-;=94EW;2yg%c7nGV9HplbKVFmzBn}vP= diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9bea433 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ + +.DS_Store diff --git a/shells/.DS_Store b/shells/.DS_Store index a0bd3a1ed3e4e2365015d772a5e6cc05af20ee5b..b861efe3f9857b6d45a927a6490bf0a4189c0fe3 100644 GIT binary patch delta 30 mcmZoMXfc@J&&WJ6U^gT4WFAKS&FPE_*d{jUY-Z>9%MSpNfeD8I delta 57 zcmZoMXfc@J&&V<{U^gSnWFAI+SvH1LhCGHc20eyih78Y~{N$vZ{3Hej1_1^J#-E#Y N7}v9HX6N|J4*;XH4#fZf diff --git a/shells/box.sh b/shells/box.sh index 084a360..218ee8d 100644 --- a/shells/box.sh +++ b/shells/box.sh @@ -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)" diff --git a/shells/kodi.sh b/shells/kodi.sh index 7a92db8..0cd6b3f 100644 --- a/shells/kodi.sh +++ b/shells/kodi.sh @@ -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)" diff --git a/shells/sony.sh b/shells/sony.sh index e454cef..4c4656e 100644 --- a/shells/sony.sh +++ b/shells/sony.sh @@ -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)" diff --git a/shells/tv.sh b/shells/tv.sh index c7f7672..a92e83d 100644 --- a/shells/tv.sh +++ b/shells/tv.sh @@ -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"