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

Fix for wrt update

This commit is contained in:
Ycarus (Yannick Chabanois) 2021-12-26 18:41:29 +01:00
parent 6725ab4c45
commit 46efae0eab

View file

@ -24,5 +24,11 @@ fi
uci -q set openmptcprouter.settings.scaling_governor='performance'
uci -q commit openmptcprouter
}
[ -n "$(ubus call system board | jsonfilter -e '@.board_name' | grep wrt)" ] && [ "$(uci -q get system.@system[0].compat_version)" == "" ] && {
uci -q batch <<-EOF >/dev/null
set system.@system[-1].compat_version='1.1'
commit system
EOF
}
exit 0