Sometime on Tue, Sep 05, 2006 at 07:41:50AM +0530, Pradnyesh Sawant said:
hello,
there is a file in /proc which i want to initialise to a particular value at bootup (i have root access to the concerned system); googling suggests that i should do it using a startup script. is the script being referred to "/etc/inittab"? is there any other script file which i can use for this purpose? if there is, then what might be the pros and cons of using that script file over inittab?
Hi, Not sure which OS you are using. This is just FYI. In case of Redhat based distro, there are two startup scripts. /etc/rc.sysinit and /etc/rc.local
rc.sysinit is the main startup script used and rc.local is the next script which runs after the whole boot process ends. Write a shell script for updating the file under /proc and put wherever you want.