diff options
author | Himbeer <himbeer@disroot.org> | 2025-03-21 14:44:32 +0100 |
---|---|---|
committer | Himbeer <himbeer@disroot.org> | 2025-03-21 14:44:32 +0100 |
commit | d14d44b73c05403173a98a8d0fa14fad487904d9 (patch) | |
tree | d50bd34fd3ce673f6e48813188e6e417fff44ff9 | |
parent | bd557b53cea498c3e18ecd41db9ee68507e47986 (diff) |
Add logic summary
-rw-r--r-- | src/main.rs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs index e7a11a9..fcea38d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,3 +1,23 @@ +// Reboot and rollback logic +// /data/update does not exist? => MONITOR +// CHECK: +// Connection to tcp!ipv4.google.com!80 unsuccessful? => FAIL +// Connection to tcp!ipv6.google.com!80 unsuccessful? => FAIL +// No connection from updater? => FAIL +// => MONITOR +// FAIL: +// If 5m passed since first CHECK? => TIMEOUT +// Wait 30s => CHECK +// TIMEOUT: +// Trigger rollback (can use /data/admind.passwd) => REBOOT +// MONITOR: +// Connection to tcp!ipv4.google.com!80 unsuccessful? => DROPOUT +// Connection to tcp!ipv6.google.com!80 unsuccessful? => DROPOUT +// Wait 5m => MONITOR +// DROPOUT: +// If DROPOUT for 1h? => REBOOT +// Wait 5m => MONITOR + fn main() { println!("Hello, world!"); } |