Skip to content

Commit

Permalink
Join network detection
Browse files Browse the repository at this point in the history
  • Loading branch information
E7KMbb committed Sep 13, 2020
1 parent 937103e commit 3668deb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion module.prop
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
id=UnblockNeteaseMusic
name=UnblockNeteaseMusic for Magisk
version=v0.25.3
versionCode=20200830
versionCode=20200913
author=依然的爱
description=网易云音乐解锁变灰,服务状态控制请在在终端以su权限输入UnblockNeteaseMusic以控制,默认开机自启
8 changes: 7 additions & 1 deletion service.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,11 @@ if [ -f ${pid_file} ] ; then
fi

if [ boot_start = "true" ]; then
UnblockNeteaseMusic start
for i in $(seq 1 15); do
ping -c 1 music.163.com
if [ $? -eq 0 ];then
UnblockNeteaseMusic start
break;
fi
done
fi

0 comments on commit 3668deb

Please sign in to comment.