2
votes

I have an embedded system. An old linux OS runs on it. When i enter "uname -r" command i get the version information as "3.3.8-3.4".

I want to modify some of network kernel parameters (increase tcp receive buffer size etc.) in /proc/sys. But sysctl command does not exist in this old linux kernel version. Also sysctl.conf does not exist under /etc directory

I tried changing kernel parameter files manually but system does not allow this operation even for super user.

How can i modify kernel parameters in this linux version?

1
Might be, that this is no SO-question. Try super user or unix/linux. - icbytes
unfortunately sudo command is not exist in my simplified embedded linux os - mehmet riza oz

1 Answers

2
votes

You can use /proc/sys. For example the following command:

echo 1 > /proc/sys/net/ipv4/ip_forward

... is basically the same as

sysctl -w net.ipv4.ip_forward=1

However, you'll need to make sure on your own that parameters will be set on boot.