better openwrt sub lan control
This commit is contained in:
1 parent
07d5bffef2
commit
e3866d75a9
15 files changed
+384
-573
No files matched your search
+9
-2
@@ -295,9 +295,16 @@ Report written to ($report_file)"
|
||||
}
|
||||
|
||||
# Deploy OpenWrt router configuration
|
||||
export def "skyg openwrt" [router: string = "glmain"] {
|
||||
export def "skyg openwrt" [
|
||||
router: string = "glmain",
|
||||
--dry-run # Render configs to .tmp/openwrt-<router>/ without touching the router
|
||||
] {
|
||||
cd $REPO_ROOT
|
||||
bash -c $"age -d -i ~/.ssh/id_ed25519 secrets/($router).json.age | nix run .#openwrt-($router)"
|
||||
if $dry_run {
|
||||
bash -c $"export SKYG_ROUTER=($router); age -d -i ~/.ssh/id_ed25519 secrets/($router).json.age | nix run .#openwrt-($router)-dry-run"
|
||||
} else {
|
||||
bash -c $"age -d -i ~/.ssh/id_ed25519 secrets/($router).json.age | nix run .#openwrt-($router)"
|
||||
}
|
||||
}
|
||||
|
||||
# Build ISO image
|
||||
|
||||
Reference in new issue
Block a user