@@ -44,11 +44,28 @@ extract_with_check() {
44
44
}
45
45
46
46
apply_right_opkg_repo () {
47
- logger_command " Checking opkg feeds config "
47
+ logger_command " Checking opkg feeds... "
48
48
marketing_version=" $( uci get -q version.@version[0].marketing_version) "
49
49
50
50
opkg_file=" /etc/opkg.conf"
51
-
51
+ if [ " $1 " ] && [ " $1 " == " TG78" ]; then
52
+ if [ -z " $( grep $opkg_file -e " FrancYescO/789vacv2_opkg/master" ) " ]; then
53
+ cat << EOF >> $opkg_file
54
+ src/gz base https://raw.githubusercontent.com/FrancYescO/789vacv2_opkg/master/base
55
+ src/gz packages https://raw.githubusercontent.com/FrancYescO/789vacv2_opkg/master/packages
56
+ src/gz luci https://raw.githubusercontent.com/FrancYescO/789vacv2_opkg/master/luci
57
+ src/gz routing https://raw.githubusercontent.com/FrancYescO/789vacv2_opkg/master/routing
58
+ src/gz telephony https://raw.githubusercontent.com/FrancYescO/789vacv2_opkg/master/telephony
59
+ src/gz management https://raw.githubusercontent.com/FrancYescO/789vacv2_opkg/master/management
60
+ EOF
61
+ fi
62
+ elif [ " $1 " ] && [ " $1 " == " Xtream" ]; then
63
+ if [ -z " $( grep $opkg_file -e " FrancYescO/789vacv2_opkg/xtream35b" ) " ]; then
64
+ cat << EOF >> $opkg_file
65
+ src/gz base https://raw.githubusercontent.com/FrancYescO/789vacv2_opkg/xtream35b/packages
66
+ EOF
67
+ fi
68
+ else
52
69
case $marketing_version in
53
70
" 18.3" * )
54
71
if [ -n " $( grep $opkg_file -e " brcm63xx-tch" ) " ]; then
97
114
logger_command " No opkg file supported"
98
115
;;
99
116
esac
117
+ fi
100
118
}
101
119
102
120
ledfw_extract () {
@@ -223,6 +241,12 @@ kernel_ver="$(< /proc/version awk '{print $3}')"
223
241
224
242
225
243
[ -z " ${device_type##* DGA413* } " ] && apply_right_opkg_repo # Check opkg conf based on version
244
+ if [ -z " ${device_type##* TG788* } " ] && [ -z " ${device_type##* TG789* } " ] && [ -n " ${device_type##* Xtream* } " ]; then
245
+ apply_right_opkg_repo TG78
246
+ fi
247
+ if [ -z " ${device_type##* TG789* } " ] && [ -z " ${device_type##* Xtream* } " ]; then
248
+ apply_right_opkg_repo Xtream
249
+ fi
226
250
227
251
if [ ! " $( uci get -q modgui.app.specific_app) " ]; then
228
252
uci set modgui.app.specific_app=" 0"
0 commit comments