update 2022-07-04 20:19:32

This commit is contained in:
github-actions[bot] 2022-07-04 20:19:32 +08:00
parent 929eaf6405
commit d7a357b398
2 changed files with 11 additions and 6 deletions

View File

@ -105,6 +105,7 @@ start_service()
is_enabled "config" "strict_mode" && append_param "-s"
procd_set_param env LOG_FILE="/tmp/$NAME.log"
procd_append_param env JSON_LOG="true"
append_param_env "config" "joox_cookie" "JOOX_COOKIE"
append_param_env "config" "qq_cookie" "QQ_COOKIE"
@ -120,7 +121,6 @@ start_service()
"lower_than_999kbps") procd_append_param env MIN_BR="600000" ;;
"replace_all") procd_append_param env MIN_BR="9999999" ;;
esac
procd_append_param env JSON_LOG="true"
procd_set_param stdout 1
procd_set_param stderr 1

View File

@ -9,7 +9,7 @@ echo -e "Launching luci-app-unblockneteasmusic Debugging Tool..."
echo -e "\n"
echo -e "OpenWrt info:"
cat "/etc/openwrt_release"
ubus call system board || cat "/etc/openwrt_release"
echo -e "\n"
echo -e "uclient-fetch info:"
@ -56,12 +56,17 @@ netstat -tlpen | grep "$unm_ports" || echo -e "No instance found on port $unm_po
echo -e "\n"
echo -e "Running info:"
procd_running_status="$(/etc/init.d/unblockneteasemusic status)"
echo -e "PROCD running status: $procd_running_status"
[ "$procd_running_status" = "running" ] && { busybox ps -w | grep "unblockneteasemusic" | grep "app\.js" || echo -e "Thread is not found."; }
busybox ps -w | grep "unblockneteasemusic" | grep "app\.js" || { is_stopped=1; echo -e "Thread is not found."; }
if ! /etc/init.d/unblockneteasemusic info | grep -q "Available commands"; then
echo -e "PROCD running info: \n$(/etc/init.d/unblockneteasemusic info | sed -e 's,"YOUTUBE_KEY".*","YOUTUBE_KEY": "set",g' \
-e 's,"QQ_COOKIE".*","QQ_COOKIE": "set",g')"
else
echo -e "PROCD too old, cannot dump service info."
fi
echo -e "\n"
[ "$procd_running_status" != "running" ] || {
[ -n "$is_stopped" ] || {
echo -e "Firewall info:"
if [ -e "$(command -v fw4)" ]; then
[ -e "/etc/nftables.d/90-unblockneteasemusic-rules.nft" ] || echo -e 'netease_cloud_music nft rule file not found.'