Writes bootcmd

This commit is contained in:
2026-04-04 22:47:51 +08:00
parent b8a5f197f4
commit abc749a4b0
10 changed files with 316 additions and 18 deletions

View File

@@ -46,7 +46,7 @@ func newInternalFWPrintEnvCmd() *cobra.Command {
res, err := runner.RunWithOptions(
ctx,
"/fw_printenv",
"fw_printenv",
runArgs,
system.RunOptions{
Quiet: true,

View File

@@ -52,7 +52,7 @@ func newInternalFWSetEnvCmd() *cobra.Command {
// Preflight first so failure is clearer than blindly writing.
preflightRes, err := runner.RunWithOptions(
ctx,
"/fw_printenv",
"fw_printenv",
[]string{"-c", configPath},
system.RunOptions{
Quiet: true,
@@ -70,7 +70,7 @@ func newInternalFWSetEnvCmd() *cobra.Command {
res, err := runner.RunWithOptions(
ctx,
"/fw_setenv",
"fw_setenv",
[]string{
"-c", configPath,
key, value,