summaryrefslogtreecommitdiffstatshomepage
path: root/justfile
diff options
context:
space:
mode:
Diffstat (limited to 'justfile')
-rw-r--r--justfile16
1 files changed, 16 insertions, 0 deletions
diff --git a/justfile b/justfile
index 9c4edaa..ea69469 100644
--- a/justfile
+++ b/justfile
@@ -100,6 +100,22 @@ _require-canonical:
canonical-system: _require-canonical
@bash scripts/canonical-system.sh
+# Prepare bond profiles without loading them or changing the active network.
+[positional-arguments]
+canonical-bond-prepare +profiles: _require-canonical
+ @sudo /usr/bin/python3 scripts/canonical_bond.py "$@"
+
+# Run locally: changes networking and schedules rollback after five minutes.
+canonical-bond-activate: _require-canonical
+ @sudo /bin/sh /var/lib/dotfiles/bond0/activate.sh
+
+# Cancel the recovery timer only after testing both network paths.
+canonical-bond-keep: _require-canonical
+ @sudo systemctl stop dotfiles-bond-rollback.timer
+
+canonical-bond-rollback: _require-canonical
+ @sudo /bin/sh /var/lib/dotfiles/bond0/rollback.sh
+
canonical-extensions: _require-canonical
@python3 scripts/canonical.py extensions