openwrt fixes

This commit is contained in:
ari committed 2026-08-26 16:55:31 -04:00
1 parent e3866d75a9
commit 96efbd3bc9
5 files changed
+9 -6

No files matched your search

+1 -1
View File
@@ -37,7 +37,7 @@ age -d secrets/glmain.json.age | openwrt-deploy
`openwrt-dry-run` renders the same three configs **locally** and writes them to
`.tmp/openwrt-<router>/` for review — no SSH, no `uci`, no confirm prompt. The router name
comes from the `SKYG_ROUTER` env var (default `glmain`).
is passed as a command-line argument (default `glmain`).
```bash
skyg openwrt --dry-run
+2 -2
View File
@@ -118,10 +118,10 @@ let
# Dry-run: render the configs locally and write them to .tmp/openwrt-<router>/
# for review. No SSH, no uci, no router changes. Run from the repo root.
# The router name is taken from $SKYG_ROUTER (default glmain).
# The router name is passed as $1 (defaults to glmain).
dryRunScript = pkgs.writeShellScriptBin "openwrt-dry-run" ''
set -euo pipefail
ROUTER="$'{SKYG_ROUTER:-glmain}"
if [ $# -ge 1 ]; then ROUTER="$1"; else ROUTER=glmain; fi
OUTDIR=".tmp/openwrt-$ROUTER"
mkdir -p "$OUTDIR"