mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 05:36:47 +00:00
transmission: net.core.{r,w}mem.max *workaround for uTP
This commit is contained in:
parent
0b3c1a4e67
commit
2cf0e0be30
@ -89,6 +89,11 @@ if [ ! "$(pidof transmission-daemon)" ];then
|
||||
if [ -f "$LOCKDIR/$LOCKFILE" ] ; then
|
||||
break
|
||||
fi
|
||||
# XXX: sysctls for uTP. we may remove this later
|
||||
if [ "$TRANSMISSION_UTP" = "true" ]; then
|
||||
sysctl -w net.core.wmem_max=1048576 > /dev/null 2>&1
|
||||
sysctl -w net.core.rmem_max=4194304 > /dev/null 2>&1
|
||||
fi
|
||||
EVENT_NOEPOLL=1 LD_LIBRARY_PATH="$ADDON_DIR/lib:$LD_LIBRARY_PATH" eval transmission-daemon -f $TRANSMISSION_ARG &>$LOG_FILE
|
||||
sleep 1
|
||||
done &
|
||||
|
Loading…
x
Reference in New Issue
Block a user