Skip to content

Commit 3ba466a

Browse files
committed
add TG789Xtream35B specific pack, add openssl-util to TG789 specific pack
1 parent 913ebd3 commit 3ba466a

File tree

9 files changed

+109
-4
lines changed

9 files changed

+109
-4
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ if [ -z "${device_type##*DGA413*}" ]; then
257257
elif [ -z "${kernel_ver##3.4*}" ] && [ -z "${device_type##*TG789*}" ] && [ -n "${device_type##*Xtream*}" ]; then
258258
install_specific TG789
259259
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
261261
elif [ -z "${kernel_ver##3.4*}" ] && [ -z "${device_type##*TG799*}" ]; then
262262
install_specific TG789
263263
elif [ -z "${kernel_ver##3.4*}" ] && [ -z "${device_type##*TG800*}" ]; then

decompressed/gui_file/www/docroot/modals/changelog.lp

+3-2
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,13 @@ ngx.print('\
1818
}
1919
html[#html + 1] = '<legend>' .. T"Mainline 18.3 Cobalt" .. '</legend>'
2020
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/>"..
2222
"Fix funzioni di copia e trasferimento bank<br/>"..
2323
"Aggiunta modal gestione cron<br/>"..
2424
"Aggiunta modal gestione init<br/>"..
2525
"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)
2728
html[#html + 1] = ui_helper.createLabel("9.4", "Aggiunta opzione per forzare interfaccia in HTTPS<br/>"..
2829
"Aggiunta opzione per eseguire backup OpenWRT<br/>"..
2930
"Aggiunta opzione per visualizzare access-concentrator per sessioni PPP<br/>"..

decompressed/upgrade-pack-specificTG789/setup.sh

+4-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@ for file in /tmp/upgrade-pack-specificTG789; do
3030
cp $file $orig_file
3131
rm $file
3232
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
3437
done
3538

3639
[ -d $MD5_CHECK_DIR ] && rm -r $MD5_CHECK_DIR
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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 numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
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

inizialize_gui.sh

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ declare -a modular_dir=(
55
"upgrade-pack-specificDGA"
66
"upgrade-pack-specificTG800"
77
"upgrade-pack-specificTG789"
8+
"upgrade-pack-specificTG789Xtream35B"
89
"custom-ripdrv-specificDGA"
910
"telstra_gui"
1011
"ledfw_support-specificTG788"

0 commit comments

Comments
 (0)