Skip to content

Commit

Permalink
fix syntax error
Browse files Browse the repository at this point in the history
move bank info to modgui modal
  • Loading branch information
FrancYescO committed Dec 15, 2020
1 parent d0fe8fa commit 36aff9f
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 24 deletions.
2 changes: 1 addition & 1 deletion decompressed/base/etc/init.d/rootdevice
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ logecho() {

logecho_always() {
logger -t "Root Script" "$@"
echo "Root Script" "$@" >>rootdevice_log_file
echo "Root Script" "$@" >>$rootdevice_log_file
}

create_modgui_log() {
Expand Down
23 changes: 0 additions & 23 deletions decompressed/gui_file/www/docroot/modals/gateway-modal.lp
Original file line number Diff line number Diff line change
Expand Up @@ -357,11 +357,6 @@ local content = {
fwversion_prefix = "uci.versioncusto.override.fwversion_prefix",
fwversion_suffix = "uci.versioncusto.override.fwversion_suffix",
fwversion_override = "uci.versioncusto.override.fwversion_override_real",
activebank = "sys.banktable.activebank",
passivebank = "sys.banktable.passivebank",
activeversion = "sys.banktable.activeversion",
passiveversion = "sys.banktable.passiveversion",
rip_key_B = "rpc.system.modgui.utility.rip_key_B",
schedule_reboot_get = "uci.system.scheduledreboot.enabled"
}

Expand Down Expand Up @@ -854,24 +849,6 @@ ngx.print(ui_helper.createMessages(message_helper.popMessages()))
end

ngx.print(html)

local html = {}
html[#html + 1] = '<legend>'.. T"Bank Info" ..'</legend>'
html[#html + 1] = ui_helper.createLabel(T"Active Bank", content["activebank"] , basic)
html[#html + 1] = ui_helper.createLabel(T"Active Version", content["activeversion"] , long_basic)
html[#html + 1] = ui_helper.createLabel(T"Passive Bank", content["passivebank"] , basic)
if content["passiveversion"] == "Unknown" then
html[#html + 1] = ui_helper.createLabel(T"Passive Version", T"Firmware not present in this bank" , long_basic)
else
html[#html + 1] = ui_helper.createLabel(T"Passive Version", content["passiveversion"] , long_basic)
end
ngx.print(html)

local html = {}
html[#html + 1] = '<legend>'.. T"Key Info" ..'</legend>'
html[#html + 1] = ui_helper.createLabel(T"Config decrypt key", content["rip_key_B"] , basic)

ngx.print(html)
ngx.print('\
</form>\
</fieldset>\
Expand Down
23 changes: 23 additions & 0 deletions decompressed/gui_file/www/docroot/modals/modgui-modal.lp
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,11 @@ local content = {
specific_app = "uci.modgui.app.specific_app",
telstra_gui = "uci.modgui.app.telstra_webui",
fwversion_real = "uci.versioncusto.override.fwversion_override_real",
activebank = "sys.banktable.activebank",
passivebank = "sys.banktable.passivebank",
activeversion = "sys.banktable.activeversion",
passiveversion = "sys.banktable.passiveversion",
rip_key_B = "rpc.system.modgui.utility.rip_key_B",
}
content_helper.getExactContent(content)

Expand Down Expand Up @@ -765,6 +770,24 @@ ngx.print('\
html[#html + 1] = ui_helper.createAlertBlock(T"Force the device to always use bank_2 partition as booted partition and bank_1 as active but corrupted<br/>This will also ensure that overlay (configs/mods partition) of bank_1 is empty or just have the rooting script preloaded.<br/>This bank plan allow to use TFTP flashing, as a reliable recovery procedure in case we mess-up with the bank_2 overlay", info_box)
html[#html + 1] = ui_helper.createSwitch(T"OBP Check", "check_obp", modgui_settings["check_obp"])
ngx.print(html)

local html = {}
html[#html + 1] = '<legend>'.. T"Bank Info" ..'</legend>'
html[#html + 1] = ui_helper.createLabel(T"Active Bank", content["activebank"] , basic)
html[#html + 1] = ui_helper.createLabel(T"Active Version", content["activeversion"] , long_basic)
html[#html + 1] = ui_helper.createLabel(T"Passive Bank", content["passivebank"] , basic)
if content["passiveversion"] == "Unknown" then
html[#html + 1] = ui_helper.createLabel(T"Passive Version", T"Firmware not present in this bank" , long_basic)
else
html[#html + 1] = ui_helper.createLabel(T"Passive Version", content["passiveversion"] , long_basic)
end
ngx.print(html)

local html = {}
html[#html + 1] = '<legend>'.. T"Key Info" ..'</legend>'
html[#html + 1] = ui_helper.createLabel(T"Config decrypt key", content["rip_key_B"] , basic)

ngx.print(html)
ngx.print('\
</form>\
</fieldset>\
Expand Down

0 comments on commit 36aff9f

Please sign in to comment.