Skip to content

Commit 913ebd3

Browse files
committed
add opkg repos for 789vac, add aria2 and transmission for 789 Xtream35b
1 parent c5980ed commit 913ebd3

File tree

4 files changed

+42
-4
lines changed

4 files changed

+42
-4
lines changed

decompressed/gui_file/etc/modgui_scripts/02_specific.sh

+26-2
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,28 @@ extract_with_check() {
4444
}
4545

4646
apply_right_opkg_repo() {
47-
logger_command "Checking opkg feeds config"
47+
logger_command "Checking opkg feeds..."
4848
marketing_version="$(uci get -q version.@version[0].marketing_version)"
4949

5050
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
5269
case $marketing_version in
5370
"18.3"*)
5471
if [ -n "$( grep $opkg_file -e "brcm63xx-tch" )" ]; then
@@ -97,6 +114,7 @@ EOF
97114
logger_command "No opkg file supported"
98115
;;
99116
esac
117+
fi
100118
}
101119

102120
ledfw_extract() {
@@ -223,6 +241,12 @@ kernel_ver="$(< /proc/version awk '{print $3}')"
223241

224242

225243
[ -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
226250

227251
if [ ! "$(uci get -q modgui.app.specific_app)" ]; then
228252
uci set modgui.app.specific_app="0"

decompressed/gui_file/usr/share/transformer/scripts/appInstallRemoveUtility.sh

+10-2
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,11 @@ app_transmission() {
5656

5757
install() {
5858
[ "$(echo $device_type | grep DGA)" ] && install_DGA
59-
[ "$(echo $device_type | grep TG7)" ] && install_from_github FrancYescO/sharing_tg789 transmission
59+
if [ -z "${device_type##*TG789*}" ] && [ -z "${device_type##*Xtream*}" ]; then
60+
install_from_github FrancYescO/sharing_tg789 transmission-xtream
61+
elif [ "$(echo $device_type | grep TG7)" ]; then
62+
install_from_github FrancYescO/sharing_tg789 transmission
63+
fi
6064
}
6165

6266
remove() {
@@ -272,7 +276,11 @@ app_aria2() {
272276
}
273277

274278
[ "$(echo $device_type | grep DGA)" ] && install_DGA
275-
[ "$(echo $device_type | grep TG7)" ] && install_from_github FrancYescO/sharing_tg789 aria2
279+
if [ -z "${device_type##*TG789*}" ] && [ -z "${device_type##*Xtream*}" ]; then
280+
install_from_github FrancYescO/sharing_tg789 aria2-xtream
281+
elif [ "$(echo $device_type | grep TG7)" ]; then
282+
install_from_github FrancYescO/sharing_tg789 aria2
283+
fi
276284
}
277285
remove() {
278286
killall aria2c

decompressed/gui_file/www/cards/009_extensions.lp

+3
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ if not (prod_friendly_name[1].value:match("TG789") and prod_friendly_name[1].val
4141
end
4242
end
4343
end
44+
else
45+
mapParams.transmission_webui = "uci.modgui.app.transmission_webui"
46+
mapParams.aria2_webui = "uci.modgui.app.aria2_webui"
4447
end
4548

4649
content_helper.getExactContent(mapParams)

decompressed/gui_file/www/docroot/modals/applications-modal.lp

+3
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@ if not (prod_friendly_name[1].value:match("TG789") and prod_friendly_name[1].val
8181
end
8282
end
8383
end
84+
else
85+
mapParams.transmission_webui = "uci.modgui.app.transmission_webui"
86+
mapParams.aria2_webui = "uci.modgui.app.aria2_webui"
8487
end
8588
content_helper.getExactContent(mapParams)
8689

0 commit comments

Comments
 (0)