forked from TTLMaster/OpenWrt-Scripts
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
183 lines (152 loc) · 3.94 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
include $(TOPDIR)/rules.mk
PKG_NAME:=yota
PKG_VERSION:=20161128
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
include $(INCLUDE_DIR)/package.mk
define Package/yota/Default
SECTION:=net
CATEGORY:=Network
SUBMENU:=Yota
TITLE:=Scripts for cheat mobile operator regarding tethering detection
MAINTAINER:=Ilya Fedin <[email protected]>
URL:=https://github.com/ilya-fedin/yota
PKGARCH:=all
endef
define Package/yota/Default/description
Yota - Russian virtual mobile operator, who blocks tethering at smartpone sim.
People not wish waste money for modem, and cheats Yota and other mobile operators regarding tethering detection.
These scripts helps you cheat your mobile operator!
endef
define Package/yota
$(call Package/yota/Default)
TITLE+= (base files)
DEPENDS:=+comgt +iptables-mod-ipopt +iptables
endef
define Package/yota/description
$(call Package/yota/Default/description)
Base files for cheat - fix ttl, configs, etc.
endef
define Package/yotaban
$(call Package/yota/Default)
TITLE+= (bans bad IPs)
DEPENDS:=+yota +iptables +wget +ca-certificates
endef
define Package/yotaban/description
$(call Package/yota/Default/description)
Ban bad IPs with iptables.
endef
define Package/yotaban-nossl
$(call Package/yota/Default)
TITLE+= (bans bad IPs, mirror source)
DEPENDS:=+yota +iptables
endef
define Package/yotaban-nossl/description
$(call Package/yota/Default/description)
Ban bad IPs with iptables - alternate source without https.
endef
define Package/yotareboot
$(call Package/yota/Default)
TITLE+= (reboots on tethering detection)
DEPENDS:=+yota
endef
define Package/yotareboot/description
$(call Package/yota/Default/description)
Autoreboot your router at beggar and don't leave your beach!
endef
define Package/yota/conffiles
/etc/config/yota
endef
define Build/Prepare
endef
define Build/Configure
endef
define Build/Compile
endef
define Package/yota/install
$(CP) ./files/* $(1)
endef
define Package/yotaban/install
$(CP) ./files-ban/* $(1)
endef
define Package/yotaban-nossl/install
$(CP) ./files-ban-nossl/* $(1)
endef
define Package/yotareboot/install
$(CP) ./files-reboot/* $(1)
endef
define Package/yota/postinst
#!/bin/sh
# check if we are on real system
if [ -z "$${IPKG_INSTROOT}" ]; then
echo "Enabling rc.d symlink for yota"
/etc/init.d/ttl enable
fi
exit 0
endef
define Package/yota/prerm
#!/bin/sh
# check if we are on real system
if [ -z "$${IPKG_INSTROOT}" ]; then
echo "Removing rc.d symlink for yota"
/etc/init.d/ttl disable
fi
exit 0
endef
define Package/yotaban/postinst
#!/bin/sh
# check if we are on real system
if [ -z "$${IPKG_INSTROOT}" ]; then
echo "Enabling rc.d symlink for yotaban"
/etc/init.d/yotaban enable
fi
exit 0
endef
define Package/yotaban/prerm
#!/bin/sh
# check if we are on real system
if [ -z "$${IPKG_INSTROOT}" ]; then
echo "Removing rc.d symlink for yotaban"
/etc/init.d/yotaban disable
fi
exit 0
endef
define Package/yotaban-nossl/postinst
#!/bin/sh
# check if we are on real system
if [ -z "$${IPKG_INSTROOT}" ]; then
echo "Enabling rc.d symlink for yotaban-nossl"
/etc/init.d/yotaban enable
fi
exit 0
endef
define Package/yotaban-nossl/prerm
#!/bin/sh
# check if we are on real system
if [ -z "$${IPKG_INSTROOT}" ]; then
echo "Removing rc.d symlink for yotaban-nossl"
/etc/init.d/yotaban disable
fi
exit 0
endef
define Package/yotareboot/postinst
#!/bin/sh
# check if we are on real system
if [ -z "$${IPKG_INSTROOT}" ]; then
echo "Enabling rc.d symlink for yotareboot"
/etc/init.d/yotareboot enable
fi
exit 0
endef
define Package/yotareboot/prerm
#!/bin/sh
# check if we are on real system
if [ -z "$${IPKG_INSTROOT}" ]; then
echo "Removing rc.d symlink for yotareboot"
/etc/init.d/yotareboot disable
fi
exit 0
endef
$(eval $(call BuildPackage,yota))
$(eval $(call BuildPackage,yotaban))
$(eval $(call BuildPackage,yotaban-nossl))
$(eval $(call BuildPackage,yotareboot))