code wiki / _hdl_build / nx_aw_nasfix.nx
nx_aw_nasfix.nx
buildroot/runtime/_hdl_build/nx_aw_nasfix.nx
about
nx_aw_nasfix.nx -- SOVEREIGN NAS diagnose+restore for the live sites daemon (andelinwest.com +
nishifamily.com). No shells, no /tmp pre-staging: gets the NAS password straight from the sovereign
vault (composes _offc/nx_machine_key.elf + _offc/nx_vault.elf, exactly as nx_secret_cli does), then
SSHes to the NAS via the team's own nx_ssh_lib and runs the command read from a file (so diagnose vs
restart is driven without rebuilding). ssh_exec streams remote stdout/stderr to fd 1. READ-ONLY unless
the command file says otherwise. license_tier: ORIGINAL (spine reused from nx_aw_nasrecon)
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
| 10 | const NF_CMD_PATH: *u8 = "/mnt/c/Users/elder/AppData/Local/Temp/nascmd.txt" as *u8 |
| 11 | const NF_SECRET_OUT: *u8 = "/tmp/nxsecret.out" as *u8 |
| 12 | const NF_VAULT_NV: *u8 = "/home/elderwesto/.nishi/secrets/nas.nv" as *u8 |
functions
| 14 | func nf_slen(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n } |
| 17 | func nf_run(path: *u8, a1: *u8, a2: *u8) -> i64 |
| 35 | func nf_unlink(path: *u8) -> i64 { __syscall(263, AT_FDCWD, path, 0, 0, 0, 0) return 0 } called by 1: main |
| 37 | func main() -> i64 |