PDA

View Full Version : Edit /init scripts



alpha5
17-06-2004, 14:06
How can I edit my /init scripts? F.e. /init/httpserver.

Oleg
17-06-2004, 14:41
Copy /init/functions and /init/httpserver to /usr/local/init/, i.e.


cp /init/functions /usr/local/init/functions
cp /init/httpserver /usr/local/init/httpserver


Edit /usr/local/init/functions and replace call to /init/httpserver to /usr/local/init/httpserver.
Edit /usr/local/init/httpserver in the way you like also it's a good idea to remove "echo ... > watchdog.conf" from this file.

commit changes like this


flashfs save
flashfs commit
flashfs enable


If you was careful enough, then on the next boot you will got changed things, otherwise wl500g will continously rebooting and you will need to follow instructions posted with firmware. :D

alpha5
18-06-2004, 15:19
and what can i do, when i like to change /init/firewall?
do i need to change every file whitch calls /init/firewall, so that it runs /usr/local/init/firewall ???

Oleg
18-06-2004, 16:25
For firewall stuff it's better just to write /usr/local/init/post-firewall script. /init/firewall calls it at the end.