Commit 3ba466a 1 parent 913ebd3 commit 3ba466a Copy full SHA for 3ba466a
File tree 9 files changed +109
-4
lines changed
upgrade-pack-specificTG789
upgrade-pack-specificTG789Xtream35B
9 files changed +109
-4
lines changed Original file line number Diff line number Diff line change @@ -257,7 +257,7 @@ if [ -z "${device_type##*DGA413*}" ]; then
257
257
elif [ -z " ${kernel_ver## 3.4* } " ] && [ -z " ${device_type##* TG789* } " ] && [ -n " ${device_type##* Xtream* } " ]; then
258
258
install_specific TG789
259
259
elif [ -z " ${device_type##* TG789* } " ] && [ -z " ${device_type##* Xtream* } " ]; then
260
- install_specific TG800 # use this package as it contain only the right telnet binary for arm
260
+ install_specific TG789Xtream35B
261
261
elif [ -z " ${kernel_ver## 3.4* } " ] && [ -z " ${device_type##* TG799* } " ]; then
262
262
install_specific TG789
263
263
elif [ -z " ${kernel_ver## 3.4* } " ] && [ -z " ${device_type##* TG800* } " ]; then
Original file line number Diff line number Diff line change @@ -18,12 +18,13 @@ ngx.print('\
18
18
}
19
19
html[#html + 1] = '<legend>' .. T"Mainline 18.3 Cobalt" .. '</legend>'
20
20
html[#html + 1] = ui_helper.createLabel("9.5", "Risolti alcuni problemi di compatibilità con internet explorer<br/>"..
21
- "Fix var per ripristinare il funzionamentpo di modem 3G/LTE USB<br/>"..
21
+ "Fix vari per ripristinare il funzionamentpo di modem 3G/LTE USB<br/>"..
22
22
"Fix funzioni di copia e trasferimento bank<br/>"..
23
23
"Aggiunta modal gestione cron<br/>"..
24
24
"Aggiunta modal gestione init<br/>"..
25
25
"Aggiunti ulteriori driver xDSL<br/>"..
26
- "Aggiunta possibilità di selezionare l'interfaccia per gli account VoIP<br/>", basic)
26
+ "Aggiunta possibilità di selezionare l'interfaccia per i servizi VoIP<br/>"..
27
+ "Aggiunte app per TG789 Xtream 35B<br/>", basic)
27
28
html[#html + 1] = ui_helper.createLabel("9.4", "Aggiunta opzione per forzare interfaccia in HTTPS<br/>"..
28
29
"Aggiunta opzione per eseguire backup OpenWRT<br/>"..
29
30
"Aggiunta opzione per visualizzare access-concentrator per sessioni PPP<br/>"..
Original file line number Diff line number Diff line change @@ -30,7 +30,10 @@ for file in /tmp/upgrade-pack-specificTG789; do
30
30
cp $file $orig_file
31
31
rm $file
32
32
RESTART_SERVICE=1
33
-
33
+
34
+ # needed to fix "can't execute 'openssl'" on opkg update from https feed
35
+ opkg install /tmp/openssl-util_1.0.2g-1_brcm63xx-tch.ipk
36
+ rm /tmp/openssl-util_1.0.2g-1_brcm63xx-tch.ipk
34
37
done
35
38
36
39
[ -d $MD5_CHECK_DIR ] && rm -r $MD5_CHECK_DIR
Original file line number Diff line number Diff line change
1
+ #! /bin/sh /etc/rc.common
2
+ # Copyright (C) 2006-2011 OpenWrt.org
3
+
4
+ START=50
5
+
6
+ USE_PROCD=1
7
+ PROG=/usr/sbin/telnetd
8
+
9
+ has_root_pwd () {
10
+ local pwd=$( [ -f " $1 " ] && cat " $1 " )
11
+ pwd=" ${pwd#* root: } "
12
+ pwd=" ${pwd%%:* } "
13
+
14
+ test -n " ${pwd# [\!x]} "
15
+ }
16
+
17
+ get_root_home () {
18
+ local homedir=$( [ -f " $1 " ] && cat " $1 " )
19
+ homedir=" ${homedir#*:*: 0: 0:*: } "
20
+
21
+ echo " ${homedir%%:* } "
22
+ }
23
+
24
+ has_ssh_pubkey () {
25
+ ( /etc/init.d/dropbear enabled 2> /dev/null && grep -qs " ^ssh-" /etc/dropbear/authorized_keys ) || \
26
+ ( /etc/init.d/sshd enabled 2> /dev/null && grep -qs " ^ssh-" " $( get_root_home /etc/passwd) " /.ssh/authorized_keys )
27
+ }
28
+
29
+ start_service () {
30
+ if [ " $( uci get telnet.general.enable) " == ' 1' ]
31
+ then
32
+ procd_open_instance
33
+ procd_set_param command " $PROG " -F -l /bin/login
34
+ procd_close_instance
35
+ fi
36
+ }
37
+
38
+ service_triggers () {
39
+ procd_add_reload_trigger " telnet"
40
+ }
41
+
42
+ reload_service ()
43
+ {
44
+ stop
45
+ start
46
+ }
Original file line number Diff line number Diff line change
1
+ . /etc/init.d/rootdevice
2
+
3
+ MD5_CHECK_DIR=/tmp/md5check
4
+
5
+ [ ! -d $MD5_CHECK_DIR ] && mkdir $MD5_CHECK_DIR
6
+
7
+ for file in /tmp/upgrade-pack-specificTG789Xtream35B; do
8
+
9
+ if [ ! -f $MD5_CHECK_DIR /$file ]; then
10
+ if [ ! -d /$file ]; then
11
+ mkdir /$file
12
+ fi
13
+ continue
14
+ fi
15
+
16
+ [ -n " $( echo $file | grep .md5sum ) " ] && continue
17
+
18
+ orig_file=/$file
19
+ file=$MD5_CHECK_DIR /$file
20
+
21
+ if [ -f $orig_file ]; then
22
+ md5_file=$( md5sum $file | awk ' { print $1 }' )
23
+ md5_orig_file=$( md5sum $orig_file | awk ' { print $1 }' )
24
+ if [ $md5_file == $md5_orig_file ]; then
25
+ rm $file
26
+ continue
27
+ fi
28
+ fi
29
+
30
+ cp $file $orig_file
31
+ rm $file
32
+ RESTART_SERVICE=1
33
+
34
+ # needed to fix opkg update from https feed
35
+ opkg install /tmp/wget_1.17.1-1_brcm63xx-tch.ipk
36
+ rm /tmp/wget_1.17.1-1_brcm63xx-tch.ipk
37
+ done
38
+
39
+ [ -d $MD5_CHECK_DIR ] && rm -r $MD5_CHECK_DIR
40
+
41
+ if [ ! -f /etc/config/telnet ]; then
42
+ touch /etc/config/telnet
43
+ uci set telnet.general=telnet
44
+ uci set telnet.general.enable=' 0'
45
+ uci commit telnet
46
+ fi
47
+
48
+ if [ -f /bin/busybox_telnet ] && [ ! -f /usr/sbin/telnetd ]; then
49
+ ln -s /bin/busybox_telnet /usr/sbin/telnetd
50
+ fi
51
+
52
+ if [ ! -f /etc/init.d/telnet ]; then
53
+ ln -s /etc/init.d/telnetd /etc/init.d/telnet
54
+ fi
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ declare -a modular_dir=(
5
5
" upgrade-pack-specificDGA"
6
6
" upgrade-pack-specificTG800"
7
7
" upgrade-pack-specificTG789"
8
+ " upgrade-pack-specificTG789Xtream35B"
8
9
" custom-ripdrv-specificDGA"
9
10
" telstra_gui"
10
11
" ledfw_support-specificTG788"
You can’t perform that action at this time.
0 commit comments