Skip to content

Add using hotplug, init.d and procd OpenWrt system. Do not more need … #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 48 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
5dabc4e
Add using hotplug, init.d and procd OpenWrt system. Do not more need …
ilya-fedin Oct 16, 2016
ad6b1a8
fixes and new features
ilya-fedin Oct 17, 2016
b273a7e
New files
ilya-fedin Oct 17, 2016
d66e8fa
readme fix
ilya-fedin Oct 17, 2016
75455ef
readme fix
ilya-fedin Oct 17, 2016
1f70e4c
readme fix
ilya-fedin Oct 17, 2016
cf5c087
readme fix
ilya-fedin Oct 17, 2016
29f565a
readme fix
ilya-fedin Oct 17, 2016
6c8fe6a
readme fix
ilya-fedin Oct 17, 2016
f15c681
readme fix
ilya-fedin Oct 17, 2016
bdc0aed
readme fix
ilya-fedin Oct 17, 2016
4f305e3
readme fix
ilya-fedin Oct 17, 2016
db0800b
readme fix
ilya-fedin Oct 17, 2016
533da43
readme fix
ilya-fedin Oct 17, 2016
61fa47f
readme fix
ilya-fedin Oct 17, 2016
fb8db67
readme fix
ilya-fedin Oct 17, 2016
250ddec
readme fix
ilya-fedin Oct 17, 2016
55d51b2
readme fix
ilya-fedin Oct 17, 2016
a36c1a2
more info
ilya-fedin Oct 17, 2016
5c869f9
for completion
ilya-fedin Oct 17, 2016
68b5724
Scripts for Huawei HiLink, simplify scripts from @derlaft and ReadMe
ilya-fedin Oct 17, 2016
7399cae
readme fix
ilya-fedin Oct 17, 2016
4d1d306
readme fix
ilya-fedin Oct 17, 2016
d875a56
small update
ilya-fedin Oct 18, 2016
c33bc2d
add windows adb
ilya-fedin Oct 18, 2016
c550f90
fix windows scripts
ilya-fedin Oct 19, 2016
cb5f8e9
bugfix and mf910
ilya-fedin Oct 19, 2016
d48d6d3
Bugfix
ilya-fedin Oct 19, 2016
6802ea5
mf910 in header
ilya-fedin Oct 19, 2016
29fb366
And edit for linux...
ilya-fedin Oct 19, 2016
f329fa3
OpenWrt packges, uci integration and more...
ilya-fedin Nov 17, 2016
410f486
probeport path fix
ilya-fedin Nov 17, 2016
44ddacf
Add telnet support and small fixes
ilya-fedin Nov 17, 2016
760b9de
Add ca-certificates as dependency
ilya-fedin Nov 17, 2016
640fcca
Add support of static tty and small fixes
ilya-fedin Nov 17, 2016
d8e7339
small fix
ilya-fedin Nov 17, 2016
4579196
small fix
ilya-fedin Nov 17, 2016
6cc390b
more telnet reboot methods!
ilya-fedin Nov 17, 2016
03d0cbc
send at commands without atc
ilya-fedin Nov 17, 2016
006064e
small fix
ilya-fedin Nov 17, 2016
0810327
add ttl configuration support
ilya-fedin Nov 20, 2016
04db8fa
Prevent multiple downloads
ilya-fedin Nov 27, 2016
48d9164
fix deps
ilya-fedin Nov 27, 2016
829611d
fix deps
ilya-fedin Nov 27, 2016
b7bdf24
Small fixes
ilya-fedin Nov 28, 2016
bc1dcf8
restore files
ilya-fedin Nov 28, 2016
743d834
fix tty detect
ilya-fedin Nov 28, 2016
67d7a05
fix permissions
ilya-fedin Nov 28, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions yota/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=yota
PKG_VERSION:=20161118
PKG_VERSION:=20161120

PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)

@@ -26,12 +26,12 @@ endef
define Package/yota
$(call Package/yota/Default)
TITLE+= (base files)
DEPENDS:=+gcom +iptables-mod-ipopt
DEPENDS:=+gcom +iptables-mod-ipopt +iptables
endef

define Package/yota/description
$(call Package/yota/Default/description)
Base files for cheat - fix ttl, etc.
Base files for cheat - fix ttl, configs, etc.
endef

define Package/yotaban
16 changes: 8 additions & 8 deletions yota/files-reboot/sbin/yotareboot
Original file line number Diff line number Diff line change
@@ -6,14 +6,14 @@ ttysearch() {
}

while true; do
method="`uci -q get yota.@yotareboot[0].method`"
hiip="`uci -q get yota.@yotareboot[0].hiip`"
telip="`uci -q get yota.@yotareboot[0].telip`"
telport="`uci -q get yota.@yotareboot[0].telport`"
adbip="`uci -q get yota.@yotareboot[0].adbip`"
adbport="`uci -q get yota.@yotareboot[0].adbport`"
ttydevice="`uci -q get yota.@yotareboot[0].ttydevice`"
usbreset="`uci -q get yota.@yotareboot[0].usbreset`"
method="`uci -q get yota.@reboot[0].method`"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Какая-то задница. Так лучше не делать.

method=$(uci -q get yota.@reboot[0].method)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Почему? Они же индентичны...

hiip="`uci -q get yota.@reboot[0].hiip`"
telip="`uci -q get yota.@reboot[0].telip`"
telport="`uci -q get yota.@reboot[0].telport`"
adbip="`uci -q get yota.@reboot[0].adbip`"
adbport="`uci -q get yota.@reboot[0].adbport`"
ttydevice="`uci -q get yota.@reboot[0].ttydevice`"
usbreset="`uci -q get yota.@reboot[0].usbreset`"
if wget captive.apple.com -q -O - | grep -q 'tethering.svg'; then
case $method in
reboot)
5 changes: 4 additions & 1 deletion yota/files/etc/config/yota
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
config 'yotareboot'
config 'ttl'
option 'value' '64'
option 'mode' 'set'
config 'reboot'
option 'method' 'reboot'
option 'hiip' '192.168.8.1'
option 'telip' '192.168.8.1'
11 changes: 0 additions & 11 deletions yota/files/etc/init.d/ttl

This file was deleted.

17 changes: 17 additions & 0 deletions yota/files/etc/init.d/yotattl
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/sh /etc/rc.common

START=19
VALUE="`uci -q get yota.@ttl[0].value`"
MODE="`uci -q get yota.@ttl[0].mode`"

start() {
iptables -t mangle -N yotattl
iptables -t mangle -A POSTROUTING -j yotattl
iptables -t mangle -A yotattl -j TTL --ttl-$MODE $VALUE
}

stop() {
iptables -t mangle -D POSTROUTING -j yotattl
iptables -t mangle -F yotattl
iptables -t mangle -X yotattl
}
Binary file removed yota_20161118_all.ipk
Binary file not shown.
Binary file added yota_20161120_all.ipk
Binary file not shown.
Binary file removed yotaban-nossl_20161118_all.ipk
Binary file not shown.
Binary file added yotaban-nossl_20161120_all.ipk
Binary file not shown.
Binary file removed yotaban_20161118_all.ipk
Binary file not shown.
Binary file added yotaban_20161120_all.ipk
Binary file not shown.
Binary file removed yotareboot_20161118_all.ipk
Binary file not shown.
Binary file added yotareboot_20161120_all.ipk
Binary file not shown.