openwrt fixes
This commit is contained in:
1 parent
e3866d75a9
commit
96efbd3bc9
5 files changed
+9
-6
No files matched your search
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
Reference in new issue
Block a user