qosmngr: fix default queue config generation

In case there is a valid config in the uci file, the script should
do nothing.
This commit is contained in:
Rahul 2020-04-07 13:14:35 +05:30
parent 158f1d94a6
commit 9745a16694

View file

@ -27,7 +27,7 @@ generate_queue(){
if [ -s "/etc/config/qos" ]; then
if uci -q get qos.@queue[0] >/dev/null; then
# return if there is any valid content
return 0
exit
else
rm -f /etc/config/qos
fi