settings: Add new options on "Reset settings" dialog

This commit is contained in:
remittor
2026-01-15 22:28:18 +03:00
parent 8abbd3fb5e
commit c0e2747f30
3 changed files with 41 additions and 1 deletions

View File

@@ -442,5 +442,17 @@ function set_cfg_default_values
commit $cfgname
EOF
fi
if echo "$opt_flags" | grep -q "(enable_custom_d)"; then
uci batch <<-EOF
set $cfgname.config.DISABLE_CUSTOM='0'
commit $cfgname
EOF
fi
if echo "$opt_flags" | grep -q "(disable_custom_d)"; then
uci batch <<-EOF
set $cfgname.config.DISABLE_CUSTOM='1'
commit $cfgname
EOF
fi
return 0
}