echo's trailing newline seems to sometimes cause EINVAL in sysfs/forward_delay

This commit is contained in:
Taeyeon Mori
2018-03-19 17:52:03 +01:00
parent ba6f924f4f
commit 32ce3fcf02

View File

@ -1788,7 +1788,7 @@ if [[ "$SHARE_METHOD" != "none" ]]; then
ip link add name $BRIDGE_IFACE type bridge || die
ip link set dev $BRIDGE_IFACE up || die
# set 0ms forward delay
echo 0 > /sys/class/net/$BRIDGE_IFACE/bridge/forward_delay
echo -n 0 > /sys/class/net/$BRIDGE_IFACE/bridge/forward_delay
# attach internet interface to bridge interface
ip link set dev $INTERNET_IFACE promisc on || die