Add confdir for snapshot

This commit is contained in:
Akiyamov
2024-12-03 23:36:40 +05:00
committed by GitHub
parent 1e7a3bb8f6
commit a974ddef29
2 changed files with 21 additions and 0 deletions

View File

@@ -326,6 +326,15 @@ dnsmasqfull() {
fi
}
dnsmasqconfdir() {
if uci get dhcp.@dnsmasq[0].confdir | grep -q /tmp/dnsmasq.d; then
printf "\033[32;1mconfdir alreadt set\033[0m\n"
else
printf "\033[32;1mSetting confdir\033[0m\n"
uci set dhcp.@dnsmasq[0].confdir='/tmp/dnsmasq.d'
uci commit dhcp
fi
}
remove_forwarding() {
if [ ! -z "$forward_id" ]; then
while uci -q delete firewall.@forwarding[$forward_id]; do :; done