@@ -54,7 +54,7 @@ set_forward_dnsmasq()
5454 uci_batch=" $uci_batch set dhcp.@dnsmasq[0].noresolv=1\n"
5555 uci_batch=" $uci_batch set dhcp.@dnsmasq[0].rebind_protection=0\n"
5656 uci_batch=" $uci_batch set dhcp.@dnsmasq[0].domainneeded=0\n"
57- echo -e " $uci_batch " | uci batch -
57+ echo -e " $uci_batch " | uci batch -q -
5858 uci commit dhcp
5959 /etc/init.d/dnsmasq reload
6060}
@@ -74,7 +74,7 @@ stop_forward_dnsmasq()
7474 uci_batch=" $uci_batch delete dhcp.@dnsmasq[0].noresolv\n"
7575 uci_batch=" $uci_batch set dhcp.@dnsmasq[0].rebind_protection=1\n"
7676 uci_batch=" $uci_batch set dhcp.@dnsmasq[0].domainneeded=1\n"
77- echo -e " $uci_batch " | uci batch -
77+ echo -e " $uci_batch " | uci batch -q -
7878 uci commit dhcp
7979 [ " $norestart " != " 1" ] && /etc/init.d/dnsmasq reload
8080}
@@ -105,7 +105,7 @@ set_main_dns()
105105 return
106106 fi
107107
108- echo -e " $uci_batch " | uci batch -
108+ echo -e " $uci_batch " | uci batch -q -
109109 uci commit dhcp
110110 /etc/init.d/dnsmasq reload
111111}
@@ -125,7 +125,7 @@ stop_main_dns()
125125 }
126126 uci_batch=" $uci_batch delete dhcp.@dnsmasq[0].port\n"
127127 uci_batch=" $uci_batch del_list dhcp.lan.dhcp_option=\" 6,$hostip \" \n"
128- echo -e " $uci_batch " | uci batch -
128+ echo -e " $uci_batch " | uci batch -q -
129129 uci commit dhcp
130130 [ " $norestart " != " 1" ] && /etc/init.d/dnsmasq reload
131131}
@@ -819,7 +819,7 @@ load_service()
819819 uci_batch=" $uci_batch set smartdns.@smartdns[0].old_port=\" $port \" \n"
820820 uci_batch=" $uci_batch set smartdns.@smartdns[0].old_enabled=\" $enabled \" \n"
821821 uci_batch=" $uci_batch set smartdns.@smartdns[0].old_auto_set_dnsmasq=\" $auto_set_dnsmasq \" \n"
822- echo -e " $uci_batch " | uci batch -
822+ echo -e " $uci_batch " | uci batch -q -
823823 uci commit smartdns
824824
825825 # disable service
0 commit comments