Skip to content

Commit

Permalink
Release 2022.01.01
Browse files Browse the repository at this point in the history
  • Loading branch information
seud0nym committed Jan 1, 2022
1 parent 5d57ec4 commit cac5269
Show file tree
Hide file tree
Showing 10 changed files with 57,515 additions and 13,815 deletions.
8 changes: 5 additions & 3 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,10 @@
"N",
"commitapply"
],
"Lua.runtime.version": "Lua 5.1",
"Lua.runtime.version": "LuaJIT",
"Lua.workspace.library": [
"C:\\Users\\Stephen\\Box\\Technicolor\\Extracted\\vcnt-a_20.3.c.0329-MR19-RB\\usr\\lib\\lua\\web"
"C:\\Users\\Stephen\\Box\\Technicolor\\Extracted\\vcnt-a_20.3.c.0329-MR19-RB\\usr\\lib\\lua\\web",
"${3rd}/OpenResty/library"
],
"Lua.runtime.path": [
"?.lua",
Expand All @@ -97,5 +98,6 @@
"Lua.diagnostics.severity": {
"unused-local": "Information"
},
"Lua.diagnostics.ignoredFiles": "Enable"
"Lua.diagnostics.ignoredFiles": "Enable",
"Lua.workspace.checkThirdParty": false
}
19 changes: 19 additions & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
2022.01.01
==========
* tch-gui-unhide: Added ability to enable/disable NTP server (#54)
* tch-gui-unhide: Do not show option to send the router as the client time (NTP) server via DHCP if NTP server disabled (#54)
* tch-gui-unhide: Changed chart card processing so that you can show/hide cards from the Management Theme tab (#53) (previously you could only show/hide the charts you selected during installation with the -C option)
* tch-gui-unhide: Added ability to add custom DNS server IP addresses on LAN screen, in addition to the ipv4/6-DNS-Servers files optional processing (#55)
* tch-gui-unhide: Added ability to select known DNS servers on Custom DNS Screen
* tch-gui-unhide: Added support for intercepting IPv6 DNS queries (using a transparent proxy instead of NAT, because IPv6 NAT needs a kernel module that these devices do not have)
* tch-gui-unhide: Added Resident Set Size and memory percentage to Management Process Viewer tab
* tch-gui-unhide: Added new experimental option (-m) to reduce GUI code size by approximately 21% to try and improve performance
* tch-gui-unhide: Reworked cards that took a relatively long time to render and changed them to background load their status displays to improve perceived performance
* tch-gui-unhide: Fixed broken acme-ipsec.sh
* tch-gui-unhide: Fixed bridged mode detection on booster device
* tch-gui-unhide: Fixed bug that prevented changing of SIP Network Interface
* tch-gui-unhide: Removed option to create multiple SIP Networks (because support for multiple SIP Networks is broken: https://hack-technicolor.readthedocs.io/en/stable/Unlock/#unlocking-the-option-to-setup-a-second-sip-network)
* tch-gui-unhide: NOTE: There are de-telstra changes, so manual download and upgrade after re-running de-telstra is recommended!
* de-telstra: Disabled CWMP and WiFi-Doctor in WAN Sensing failover helper
* de-telstra: Bypass check for telstra.hybrid APN when failing over VoIP to WWAN

2021.12.06
==========
* tch-gui-unhide: Added ability to send the router as the client time (NTP) server via DHCP
Expand Down
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ Skip any of these steps that you have already done.
9. Optionally create your *ipv4-DNS-Servers* and/or *ipv6-DNS-Servers* files in the same directory as the scripts. (See [**Custom DNS Servers**](https://github.com/seud0nym/tch-gui-unhide#custom-dns-servers))
10. Apply the GUI changes. Run `./tch-gui-unhide -?` to see available options, or just execute: `./tch-gui-unhide`
11. Optionally run `./tch-gui-unhide-cards` to change card sequence and visibility
12. Clear cached images and files from your browser to see the changes.

#### NOTES:
- If you reset your device, *or* restore it to a state before you applied the scripts, *or* upgrade the firmware, you will need to run `de-telstra` and `tch-gui-unhide` again!
Expand Down Expand Up @@ -97,7 +96,7 @@ Some hidden screens included on the device are not enabled, mainly because they
- **Chart Cards** showing CPU utilization, RAM, and WAN Download/Upload Mb/s over the last minute
- **DNS** card to manage custom DNS servers
- **Gateway** card now has current device status for CPU usage, free RAM and temperature
- **Gateway** screen can now configure additional NTP servers
- **Gateway** screen can now configure additional NTP servers, and enable/disable the device NTP server
- **Broadband** card auto-updates and shows todays upload/download volume
- **Broadband** screen has a new tab to show daily and monthly usage history
- **Internet Access** card auto updates and now shows IPv6 information
Expand Down Expand Up @@ -246,7 +245,6 @@ The script accepts the following options:
- -C n|s|i
- Keep or remove chart cards: *-Cn*=No Chart Cards will be available *-Cs*=Only the Summary Chart Card will be available *-Ci*=Only the Individual Chart Cards will be available
- The default is the current setting, or *-Ci* if no theme has been applied

- -h d|s|n|"text"
- Set the browser tabs title to VARIANT (d), VARIANT-MAC_ADDRESS (s), HOSTNAME (n) or ("text") the specified "text".
- Default is the current setting
Expand All @@ -265,6 +263,9 @@ The script accepts the following options:
- -v y|n
- Enable (y) check for new releases and show 'Update Available' button in GUI, or Disable (n)
- The default is current setting or (y) for first time installs
- -m y|n
- Minify (y) GUI Lua code (*EXPERIMENTAL!!*)
- The default is current setting or (n) for first time installs
- -T
- Apply the theme settings *ONLY*. All other processing is bypassed.
- -x *feature*
Expand Down
2 changes: 1 addition & 1 deletion VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2021.12.06
2022.01.01
2 changes: 1 addition & 1 deletion build/build
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ do
[ -n "$DEBUG" ] && echo " - Appending /tmp/themes.b64"
sed -e "s/\[\$SCRIPT\]/$SEQUENCE@\$(date +%H:%M:%S)/" /tmp/themes.b64 >> $TARGET
fi
elif [ $FILENAME = "200-Services" ]; then
elif [ $FILENAME = "900-Services" ]; then
[ -n "$DEBUG" ] && echo " - Adding version to copyright and auto-refreshing cache"
echo "if [ \$THEME_ONLY = n ]; then" >> $TARGET
echo " MKTING_VERSION=\$(uci get version.@version[0].marketing_version)" >> $TARGET
Expand Down
8 changes: 4 additions & 4 deletions extras/tch-gui-unhide-xtra.adblock
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ local lfs = require("lfs")
local uci_helper = mapper("ucihelper")
local socket = require("socket")
local adding = {
black = nil,
black = nil,
white = nil,
}
Expand Down Expand Up @@ -210,7 +210,7 @@ local function readList(list)
keys[#keys+1]=tostring(adding[list])
end
end
else
else
return nil,nil,errmsg
end
return hosts,keys
Expand Down Expand Up @@ -473,11 +473,11 @@ local qry_result = "<style>.whitelist_cb{margin-bottom:5px}</style>"
if ngx.req.get_method() == "POST" then
local format, untaint = string.format, string.untaint
local args = ngx.req.get_post_args()
local query = untaint(args.check_filtered)
if query and query ~= "" then
local _,result,host = proxy.set("rpc.gui.adblock.query", query)
for host in string.gmatch(untaint(result[1]["errmsg"])," %+ (%S+)") do
for host in string.gmatch(untaint(result[1]["errmsg"])," %+ (%S+)") do
qry_result = format("%s<br><input type='checkbox' class='whitelist_cb' name='wl_host' value='%s' title='Tick to whitelist %s'>%s",qry_result,host,host,host)
end
end
Expand Down
11 changes: 2 additions & 9 deletions extras/tch-gui-unhide-xtra.minidlna
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ local minidlna_config = {
}
}
mapper("uci_1to1").registerSimpleMap(minidlna_config)
mapper("uci_1to1").registerSimpleMap(minidlna_config)
MAP
chmod 644 /usr/share/transformer/mappings/uci/minidlna.map
SRV_transformer=$(( $SRV_transformer + 1 ))
Expand Down Expand Up @@ -160,14 +160,7 @@ PLUG
-e '/^local function valid_samba_dlna_string/i \local network_rpc_path = "rpc.network.interface."' \
-e '/^local function valid_samba_dlna_string/i \local network_rpc_content = content_helper.getMatchedContent (network_rpc_path)' \
-e '/^local function valid_samba_dlna_string/i \local intfs = {}' \
-e '/^local function valid_samba_dlna_string/i \local function split(x, sep)' \
-e '/^local function valid_samba_dlna_string/i \ local sep, fields = sep or ":", {}' \
-e '/^local function valid_samba_dlna_string/i \ local pattern = string.format("([^%s]+)", sep)' \
-e '/^local function valid_samba_dlna_string/i \ for field in x:gmatch(pattern) do' \
-e '/^local function valid_samba_dlna_string/i \ fields[#fields+1] = field' \
-e '/^local function valid_samba_dlna_string/i \ end' \
-e '/^local function valid_samba_dlna_string/i \ return fields' \
-e '/^local function valid_samba_dlna_string/i \end' \
-e '/^local function valid_samba_dlna_string/i \local split = require("split").split' \
-e '/^local function valid_samba_dlna_string/i \for _, v in ipairs (network_rpc_content) do' \
-e '/^local function valid_samba_dlna_string/i \ local path = split(split(format("%s",v.path),"@")[2],".")[1]' \
-e '/^local function valid_samba_dlna_string/i \ if path == "wan" or path == "lan" then' \
Expand Down
Loading

0 comments on commit cac5269

Please sign in to comment.