View Single Post
Posts: 515 | Thanked: 266 times | Joined on Nov 2009 @ Oelsted, Denmark
#51
Originally Posted by matthew maude View Post
its easier to use vi editor for this, run

sudo gainroot

vi /etc/init.d/rcS

scroll down to 263/281

press the letter i - don't press enter after

it looks like this
echo 100 > /proc/sys/vm/swappiness

use the arrows to move the cursor and change the value to 30 or whatever you want - keep it above 30 tho

then press the onscreen 'esc' button

then type this

:wq

then hit enter
Or move the curser till it's over the 1 in 100 and press rw (replace word), enter 30, then esc, and then :wq

There's a reason for creating a new event.d script though (I also edited rcS at first).
__________________
Christian Wilken - tux-POWER.dk!
... May the Source be with You ...

Last edited by DrWilken; 2010-09-22 at 09:49.
 

The Following User Says Thank You to DrWilken For This Useful Post: