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

Apply config again only for very old config or needed settings

This commit is contained in:
Ycarus 2019-01-27 07:57:24 +01:00
parent 5df9ee2856
commit f895376029
6 changed files with 199 additions and 192 deletions

View file

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