Discuss iPhone sysctl.conf at the General - Hackint0sh.org; Is there a way to get the iphone to load /etc/sysctl.conf? I want to increase ...
Is there a way to get the iphone to load /etc/sysctl.conf? I want to increase the TCP receive window size. (My net connect is high bandwidth + hight latency and the default is a bit low.) I tried putting the sysctl.conf into /etc but nothing changed when viewed from sysctl -a. Any help would be appreciated. Thanks.
So I figured out a way to load sysctl parameters at startup. Create a launch daemon in /Library/LaunchDaemons that launch a .sh shell script with a bunch of sysctl -w's. This is probably old news for OSX/Unix geeks out there but for everyone else:
Example launch daemon:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
Example .sh file:
sysctl -w kern.ipc.maxsockbuf=524288
sysctl -w net.inet.tcp.rfc1323=1
sysctl -w net.inet.tcp.sockthreshold=0
sysctl -w net.inet.tcp.recvspace=126720
sysctl -w net.inet.tcp.sendspace=126720
I have BSD subsystem and Term-vt100 installed but I'm not sure if they're needed for this. You do need SSH or AFPd installed. If there's a better way to do this, do tell!
I found this topic on google, and I'm trying to keep some of my sysctl.conf rules
I did the shellscript (for i in `cat /etc/sysctl.conf`; do; sysctl -w $i; done)
I wrote my sysctl.conf file.
I created /Library/LaunchDaemons/com.sysctl.plist (copied from com.openssh.sshd.plist), and noticed you're only using Program Argument's key.
Whatever, I tried like you did, and it didn't work.
So I put 'Program' key instead of 'Program Argument' (following the way my openssh seems to start), but it didn't work either.
And now... what do?
Is this way to start scripts still available in 3.x and with 3GS?
Last edited by faust64; 09-11-2009 at 02:38 PM.
By clubtech in forum iPhone 3G
Last Post: 01-31-2010, 07:00 PM
By cansurmeli in forum Genuine Mac Support
Last Post: 06-29-2009, 08:39 AM
By leader288 in forum Free Toolchain Software (Cydia App's)
Last Post: 06-16-2009, 07:10 AM
By neoxx in forum General
Last Post: 10-17-2008, 09:12 PM
By blackbird in forum General
Last Post: 01-29-2008, 06:18 PM