SSH host keys on have changed, see

Commit 357bf62b authored by Marek Puzyniak's avatar Marek Puzyniak Committed by Marek Puzyniak

iopsys-ramips: enable flow_offload only if not set

 flow_offloading and
only when those are not set. If one of them
was not set this change will be commited.
Signed-off-by: Marek Puzyniak's avatarMarek Puzyniak <>
parent ea769ce7
...@@ -2,13 +2,28 @@ ...@@ -2,13 +2,28 @@
. /lib/ . /lib/
enable_flow_offloading() {
local offloading_changed=0
uci -q get firewall.@defaults[0].flow_offloading >> /dev/null || {
uci set firewall.@defaults[0].flow_offloading=1
uci -q get firewall.@defaults[0].flow_offloading_hw >> /dev/null || {
uci set firewall.@defaults[0].flow_offloading_hw=1
if test $offloading_changed -eq 1
uci commit firewall
board=$(board_name) board=$(board_name)
case "$board" in case "$board" in
ex400) ex400)
uci -q set firewall.@defaults[0].flow_offloading=1 enable_flow_offloading
uci -q set firewall.@defaults[0].flow_offloading_hw=1
uci commit firewall
;; ;;
esac esac
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment