Skip to content

Commit

Permalink
fix: merge and fixes
Browse files Browse the repository at this point in the history
Merged #9 and add inform gather changes. May stop support
for OpenWrt.
  • Loading branch information
weearc committed Nov 22, 2019
1 parent 1157635 commit 6d71297
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 6 deletions.
Empty file modified LICENSE
100755 → 100644
Empty file.
6 changes: 6 additions & 0 deletions readme.md
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# 测试用分支

## 0.即将取消对于OpenWrt以外系统的支援

## 1.注意事项:
0. 本分支相较于主分支侧重点不同,更加倾向于为用户尽可能提供更多可控制项。
1. 适用于重庆大学AB校区及虎溪校区,原则上替换配置文件以及镜像后适用于所有使用哆点认证校园网的学校。
Expand Down Expand Up @@ -44,6 +46,10 @@ scp CQU_drcom* -r [email protected]:/root/
```
所有有關的控制項目可至`Luci` -> `System - Startup` -> `Initscripts`尋找。
## CHANGE LOG
2019.11.22
- 修正echo行为(@Hagb
- 调整系统信息收集功能

2019.09.18
- 替换了虎溪校区配置文件为最新版本

Expand Down
15 changes: 15 additions & 0 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,20 @@ DRCOM=latest-wired.py
pkgname=drcom
DR_PATH=/usr/bin
CO_PATH=/etc

if [[ ! -f "/etc/os-release"]]
then
echo "Recheck your package. You cannot run this script."
sleep 1
exit;
fi

# import system information
source /etc/os-release;
distro=$NAME


# rewrite echo func By @Hagb
echo() { printf '%s\n' "$*" ; }

uname -a | grep PandoraBox | grep -v grep
Expand Down Expand Up @@ -290,6 +304,7 @@ case $distro in
kill -9 $(pidof python)
}
restart() {
kill -9 $(pidof python);
(/usr/bin/drcom > /dev/null &)&
}' > 99-drcom
chmod a+x 99-drcom
Expand Down
6 changes: 0 additions & 6 deletions test

This file was deleted.

0 comments on commit 6d71297

Please sign in to comment.