SSH host keys on dev.iopsys.eu have changed, see https://dev.iopsys.eu/help/instance_configuration#ssh-host-keys-fingerprints

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

iopsys-ramips: enable flow_offload only if not set

Enable
 flow_offloading and
 flow_offloading_hw
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 <marek.puzyniak@iopsys.eu>
parent ea769ce7
......@@ -2,13 +2,28 @@
. /lib/functions.sh
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
offloading_changed=1
}
uci -q get firewall.@defaults[0].flow_offloading_hw >> /dev/null || {
uci set firewall.@defaults[0].flow_offloading_hw=1
offloading_changed=1
}
if test $offloading_changed -eq 1
then
uci commit firewall
fi
}
board=$(board_name)
case "$board" in
ex400)
uci -q set firewall.@defaults[0].flow_offloading=1
uci -q set firewall.@defaults[0].flow_offloading_hw=1
uci commit firewall
enable_flow_offloading
;;
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