settings: Add new options on "Reset settings" dialog

This commit is contained in:
remittor
2026-01-16 19:59:40 +03:00
parent 4aca2043c1
commit 15a6f9e5ae
3 changed files with 41 additions and 1 deletions

View File

@@ -181,5 +181,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
}