code wiki / _hdl_build / nx_translate_deploy.nx
nx_translate_deploy.nx
buildroot/runtime/_hdl_build/nx_translate_deploy.nx
about
nx_translate_deploy.nx -- SOVEREIGN deploy of the MT-R5 translate daemon to the live NAS:
streams /tmp/nx_translate_daemon.sov.elf over the team's own SSH (ssh_put_file, no scp) to
nx_translate_daemon.elf.new (avoids ETXTBSY on a running exe). Start/restart is done via
nx_ssh_cmd (kill old, mv, setsid) so this organ stays single-responsibility. pw from /tmp/nxpw.
license_tier: ORIGINAL
dependencies 2 imports · 0 importers
imports: nx_syscalls.nxnx_ssh_lib.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 8 | const TD_MAGIC_1048576: i64 = 1048576 |
| 9 | const TD_MAGIC_16384: i64 = 16384 |
| 10 | const TD_MAGIC_65536: i64 = 65536 |
| 11 | const TD_MAGIC_1024: i64 = 1024 |
| 13 | const TD_WCMD: *u8 = "cat > /volume1/homes/elderwesto/nishihost/nx_translate_daemon.elf.new" as *u8 |
functions
| 15 | func slen(s: *u8) -> i64 { var n: i64=0; while s[n]!=0 as u8 { n=n+1 } return n } called by 1: main |
| 18 | func ssh_put_file(st: *SshState, wcmd: *u8, wcmdlen: i64, data: *u8, datalen: i64) -> i64 |
| 54 | func main() -> i64 |