Adding startup script on Linux

By jsliw

This can make by adding command in /etc/rc.local.

#su

#gedit /etc/rc.local

In my case, i need to enable ip forward after PC router boot up.

So i add the command to the /etc/rc.local.

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

Save the /etc/rc.local.

You can type #/etc/rc.local  start to test the command.

Leave a Reply