@@ -59,6 +59,7 @@ app_transmission() {
59
59
install_arm () {
60
60
opkg update
61
61
opkg install transmission-web transmission-daemon-openssl
62
+ [ ! -f /rom/usr/lib/libmbedcrypto.so.1 ] && opkg install libmbedtls # workaround for 19.x firmware
62
63
63
64
uci set transmission.@transmission[0].enabled=1
64
65
uci set transmission.@transmission[0].rpc_whitelist=' 127.0.0.1,192.168.*.*'
@@ -86,7 +87,7 @@ app_transmission() {
86
87
[ " $cpu_type " = " armv7l" ] && install_from_github FrancYescO/sharing_tg789 transmission-xtream
87
88
[ " $cpu_type " = " mips" ] && install_from_github FrancYescO/sharing_tg789 transmission
88
89
;;
89
- " 16." * | " 17." * | " 18." * )
90
+ " 16." * | " 17." * | " 18." * | " 19. " * )
90
91
[ " $cpu_type " = " armv7l" ] && install_arm
91
92
[ " $cpu_type " = " mips" ] && install_from_github FrancYescO/sharing_tg789 transmission
92
93
;;
@@ -100,6 +101,7 @@ app_transmission() {
100
101
101
102
remove () {
102
103
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
103
105
rm -r /www/docroot/transmission
104
106
rm -r /etc/config/transmission*
105
107
rm -r /var/transmission
@@ -178,6 +180,7 @@ app_luci() {
178
180
install () {
179
181
luci_install_arm () {
180
182
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
181
184
mv /usr/lib/lua/uci.so /usr/lib/lua/uci.so_bak
182
185
if [ -f /etc/config/uhttpd ]; then
183
186
rm /etc/config/uhttpd
@@ -226,7 +229,7 @@ app_luci() {
226
229
}
227
230
[ " $cpu_type " = " mips" ] && luci_install_mips
228
231
;;
229
- " 18." * )
232
+ " 18." * | " 19. " * )
230
233
[ " $cpu_type " = " armv7l" ] && luci_install_arm
231
234
[ " $cpu_type " = " mips" ] && luci_install_mips
232
235
;;
@@ -240,7 +243,7 @@ app_luci() {
240
243
remove () {
241
244
luci_remove_arm () {
242
245
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
244
247
cp /rom/usr/lib/lua/uci.so /usr/lib/lua/ # restore lib as it gets removed by libuci-lua
245
248
246
249
rm -r /www_luci
@@ -349,7 +352,7 @@ app_aria2() {
349
352
[ " $cpu_type " = " armv7l" ] && install_from_github FrancYescO/sharing_tg789 aria2-xtream
350
353
[ " $cpu_type " = " mips" ] && install_from_github FrancYescO/sharing_tg789 aria2
351
354
;;
352
- " 16." * | " 17." * | " 18." * )
355
+ " 16." * | " 17." * | " 18." * | " 19. " * )
353
356
[ " $cpu_type " = " armv7l" ] && install_arm
354
357
[ " $cpu_type " = " mips" ] && install_from_github FrancYescO/sharing_tg789 aria2
355
358
;;
0 commit comments