1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-02-15 03:51:51 +00:00

Fix uci get

This commit is contained in:
Ycarus 2019-02-03 19:23:55 +01:00
parent bf33b7ca3b
commit 87cc93eb5c
4 changed files with 4 additions and 4 deletions

View file

@ -1,5 +1,5 @@
#!/bin/sh
if [ "$(uci -q openmptcprouter.latest_versions)" = "" ]; then
if [ "$(uci -q get openmptcprouter.latest_versions)" = "" ]; then
if [ "$(uci -q get unbound.@unbound[0].listen_port | grep 5353)" = "" ]; then
uci -q batch <<-EOF >/dev/null
set unbound.@unbound[-1].listen_port=5353

View file

@ -1,5 +1,5 @@
#!/bin/sh
if [ "$(uci -q openmptcprouter.latest_versions)" ]; then
if [ "$(uci -q get openmptcprouter.latest_versions)" ]; then
if [ "$(uci -q get qos.wan1)" = "" ]; then
uci -q batch <<-EOF >/dev/null
delete qos.wan

View file

@ -1,6 +1,6 @@
#!/bin/sh
if [ "$(uci -q openmptcprouter.latest_versions)" = "" ]; then
if [ "$(uci -q get openmptcprouter.latest_versions)" = "" ]; then
uci -q show wireless.default_radio0 && {
uci -q batch <<-EOF >/dev/null
delete wireless.default_radio0

View file

@ -1,5 +1,5 @@
#!/bin/sh
if [ "$(uci -q openmptcprouter.latest_versions)" = "" ]; then
if [ "$(uci -q get openmptcprouter.latest_versions)" = "" ]; then
if [ "$(uci -q get sqm.wan1)" = "" ]; then
wan1="$(uci -q get network.wan1.ifname)"
wan2="$(uci -q get network.wan2.ifname)"