Skip to content

Commit d039f96

Browse files
committed
some patches and workaround for 19.x firmwares
1 parent 4702584 commit d039f96

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

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

+5-2
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ apply_right_opkg_repo() {
5757

5858
if [ "$cpu_type" == "armv7l" ]; then
5959
case $marketing_version in
60-
"18."*)
60+
"18."* | "19."*)
6161
if ! grep -q "Ansuel/GUI_ipk/kernel-4.1" $opkg_file; then
6262
cat <<EOF >>$opkg_file
6363
arch all 100
@@ -147,7 +147,10 @@ EOF
147147
fi
148148

149149
# Remove non-existent hardcoded distfeed to avoid 404 on opkg update
150-
[ -f /etc/opkg/distfeeds.conf ] && sed -i '/15.05.1\/brcm63xx-tch/d' /etc/opkg/distfeeds.conf
150+
[ -f /etc/opkg/distfeeds.conf ] && {
151+
sed -i '/15.05.1\/brcm63xx-tch/d' /etc/opkg/distfeeds.conf
152+
sed -i '/targets\/brcm6xxx-tch\/VBNTJ_502L07p1/d' /etc/opkg/distfeeds.conf
153+
}
151154
}
152155

153156
ledfw_extract() {

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

+7-4
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ app_transmission() {
5959
install_arm() {
6060
opkg update
6161
opkg install transmission-web transmission-daemon-openssl
62+
[ ! -f /rom/usr/lib/libmbedcrypto.so.1 ] && opkg install libmbedtls #workaround for 19.x firmware
6263

6364
uci set transmission.@transmission[0].enabled=1
6465
uci set transmission.@transmission[0].rpc_whitelist='127.0.0.1,192.168.*.*'
@@ -86,7 +87,7 @@ app_transmission() {
8687
[ "$cpu_type" = "armv7l" ] && install_from_github FrancYescO/sharing_tg789 transmission-xtream
8788
[ "$cpu_type" = "mips" ] && install_from_github FrancYescO/sharing_tg789 transmission
8889
;;
89-
"16."* | "17."* | "18."*)
90+
"16."* | "17."* | "18."* | "19."*)
9091
[ "$cpu_type" = "armv7l" ] && install_arm
9192
[ "$cpu_type" = "mips" ] && install_from_github FrancYescO/sharing_tg789 transmission
9293
;;
@@ -100,6 +101,7 @@ app_transmission() {
100101

101102
remove() {
102103
opkg remove --force-removal-of-dependent-packages transmission-daemon-openssl transmission-web
104+
[ ! -f /rom/usr/lib/libmbedcrypto.so.1 ] && opkg install libmbedtls #workaround for 19.x firmware
103105
rm -r /www/docroot/transmission
104106
rm -r /etc/config/transmission*
105107
rm -r /var/transmission
@@ -178,6 +180,7 @@ app_luci() {
178180
install() {
179181
luci_install_arm() {
180182
opkg update
183+
[ ! -f /rom/usr/lib/libjson-c.so.2 ] && ln -s /usr/lib/libjson-c.so.4 /usr/lib/libjson-c.so.2 #workaround for 18.x feeds used on 19.x firmware
181184
mv /usr/lib/lua/uci.so /usr/lib/lua/uci.so_bak
182185
if [ -f /etc/config/uhttpd ]; then
183186
rm /etc/config/uhttpd
@@ -226,7 +229,7 @@ app_luci() {
226229
}
227230
[ "$cpu_type" = "mips" ] && luci_install_mips
228231
;;
229-
"18."*)
232+
"18."* | "19."*)
230233
[ "$cpu_type" = "armv7l" ] && luci_install_arm
231234
[ "$cpu_type" = "mips" ] && luci_install_mips
232235
;;
@@ -240,7 +243,7 @@ app_luci() {
240243
remove() {
241244
luci_remove_arm() {
242245
opkg remove --force-removal-of-dependent-packages uhttpd rpcd libuci-lua luci luci-*
243-
246+
[ ! -f /rom/usr/lib/libjson-c.so.2 ] && rm /usr/lib/libjson-c.so.2 #workaround for 18.x feeds used on 19.x firmware
244247
cp /rom/usr/lib/lua/uci.so /usr/lib/lua/ #restore lib as it gets removed by libuci-lua
245248

246249
rm -r /www_luci
@@ -349,7 +352,7 @@ app_aria2() {
349352
[ "$cpu_type" = "armv7l" ] && install_from_github FrancYescO/sharing_tg789 aria2-xtream
350353
[ "$cpu_type" = "mips" ] && install_from_github FrancYescO/sharing_tg789 aria2
351354
;;
352-
"16."* | "17."* | "18."*)
355+
"16."* | "17."* | "18."* | "19."*)
353356
[ "$cpu_type" = "armv7l" ] && install_arm
354357
[ "$cpu_type" = "mips" ] && install_from_github FrancYescO/sharing_tg789 aria2
355358
;;

0 commit comments

Comments
 (0)