Skip to content

Commit

Permalink
Merge pull request #1 from 0oVicero0/master
Browse files Browse the repository at this point in the history
update
  • Loading branch information
kleveralt authored Oct 22, 2018
2 parents f2c25e7 + 5bcbbd1 commit 8031b26
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,18 @@ https://raw.githubusercontent.com/0oVicero0/serverSpeeder_kernel/master/$1/$2/$3
```
下载后的加速模块文件名改成这样 ```acce-$5-[$1_$2_$3]```
如果不改名字,可能会触发某个BUG(Debian下会触发,别的系统没用过,不清楚.)
许可证在这里生成: ```http://serverspeeder.azurewebsites.net/```
许可证在这里生成: ```https://moeclub.azurewebsites.net```
(用Azure免费版搭建的,不支持```HTTPS```.)
需要填写你机器网卡的MAC,点击OK就可以生成.
也可以直接在服务器上运行下面这句(一般情况下可用):
```
wget -O apx.lic http://serverspeeder.azurewebsites.net/lic?mac=$(ifconfig |grep -B1 "$(wget -qO- ipv4.icanhazip.com)" |awk '/HWaddr/{ print $5 }')
wget --no-check-certificate -qO apx.lic https://moeclub.azurewebsites.net/lic?mac=$(ifconfig |grep -B1 "$(wget -qO- ipv4.icanhazip.com)" |awk '/HWaddr/{ print $5 }')
```
-----------------------------
#仅供学习测试使用,严禁用于商业用途.
-----------------------------
[萌咖 - MoeClub.org](https://MoeClub.org)
-----------------------------
#博客: [萌咖 - MoeClub.org](https://MoeClub.org)
-----------------------------
-----------------------------

5 changes: 3 additions & 2 deletions appex.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ ifconfig >/dev/null 2>&1
[ -n "$(grep 'eth0:' /proc/net/dev)" ] && Eth=eth0 || Eth=`cat /proc/net/dev |awk -F: 'function trim(str){sub(/^[ \t]*/,"",str); sub(/[ \t]*$/,"",str); return str } NR>2 {print trim($1)}' |grep -Ev '^lo|^sit|^stf|^gif|^dummy|^vmnet|^vir|^gre|^ipip|^ppp|^bond|^tun|^tap|^ip6gre|^ip6tnl|^teql|^venet' |awk 'NR==1 {print $0}'`
[ -z "$Eth" ] && echo "I can not find the server pubilc Ethernet! " && exit 1
URLKernel='https://raw.githubusercontent.com/0oVicero0/serverSpeeder_kernel/master/serverSpeeder.txt'
MyKernel=$(wget --no-check-certificate -qO- "$URLKernel" |grep "$KNA/" |grep "/x$KNB/" |grep "/$KNK/" |sort -n -k 2 -t '_' |tail -n 1)
AcceVer=$(wget --no-check-certificate -qO- "$URLKernel" |grep "$KNA/" |grep "/x$KNB/" |grep "/$KNK/" |awk -F'/' '{print $NF}' |sort -n -k 2 -t '_' |tail -n 1)
MyKernel=$(wget --no-check-certificate -qO- "$URLKernel" |grep "$KNA/" |grep "/x$KNB/" |grep "/$KNK/" |grep "$AcceVer" |tail -n 1)
[ -z "$MyKernel" ] && echo -ne "Kernel not be matched! \nYou should change kernel manually, and try again! \n\nView the link to get detaits: \n"$URLKernel" \n\n\n" && exit 1
pause;
}
Expand Down Expand Up @@ -106,7 +107,7 @@ mkdir -p /appex/bin
MAC=$(ifconfig "$Eth" |awk '/HWaddr/{ print $5 }')
[ -z "$MAC" ] && MAC=$(ifconfig "$Eth" |awk '/ether/{ print $2 }')
[ -z "$MAC" ] && Uninstall && echo "Not Found MAC address! " && exit 1
wget --no-check-certificate -q -O "/appex/etc/apx.lic" "http://serverspeeder.azurewebsites.net/lic?mac=$MAC"
wget --no-check-certificate -q -O "/appex/etc/apx.lic" "https://moeclub.azurewebsites.net/lic?mac=$MAC"
[ "$(du -b /appex/etc/apx.lic |awk '{ print $1 }')" -ne '152' ] && Uninstall && echo "Error! I can not generate the Lic for you, Please try again later! " && exit 1
echo "Lic generate success! "
[ -n $(which ethtool) ] && rm -rf /appex/bin/ethtool && cp -f $(which ethtool) /appex/bin
Expand Down
Binary file modified appex.zip
Binary file not shown.

0 comments on commit 8031b26

Please sign in to comment.